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.
Signed-off-by: Caspar Zhang <[email protected]> --- testcases/kernel/syscalls/epoll/epoll-ltp.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/epoll/epoll-ltp.c b/testcases/kernel/syscalls/epoll/epoll-ltp.c index c2e4a5c..3aa8c9d 100644 --- a/testcases/kernel/syscalls/epoll/epoll-ltp.c +++ b/testcases/kernel/syscalls/epoll/epoll-ltp.c @@ -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
