Skip to contentSkip to conversation

syscalls:epoll01: turn off flooding verbose output

PATCH In review [email protected] 2 participants 2 messages Mar 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls:epoll01: turn off flooding verbose output

It's a small fix, not affecting functions.

epoll01 test put 13000+ lines output, it increases the size of log file and also make me review the log more difficult. I put a "DEBUG switch" in the code and make it turned off by default.

---
 testcases/kernel/syscalls/epoll/epoll-ltp.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/epoll/epoll-ltp.c +7 -3
index c2e4a5c..3aa8c9d 100644
@@ -98,8 +98,8 @@
 #include "config.h"
 #include "test.h"
 
-char *TCID = "sys_epoll02";	/* test program identifier */
-int TST_TOTAL = 1;		/* total number of tests in this file */
+char *TCID = "epoll01";
+int TST_TOTAL = 1;
 
 #ifdef HAVE_SYS_EPOLL_H
 
@@ -627,9 +627,13 @@ int test_epoll_ctl(int epoll_fd)
 									      [result]));
 							}
 							num_epoll_ctl_test_fails++;
+#ifdef DEBUG
 						} else	/* The call of epoll_ctl behaved as expected */
 							EPOLL_CTL_TEST_PASS((result_strings
 									     [result]));
+#else
+						}
+#endif
 					}
 				}
 			}
@@ -693,4 +697,4 @@ int main(void)
 	tst_brkm(TCONF, NULL, "No epoll support found.");
 }
 
-#endif
\ No newline at end of file
+#endif

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw

Hi!
Commited, thanks.

Signature · 12 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list