eventfd01: should to check ret in overflow_poll_test()
PATCH 1/1 eventfd01: should to check ret in overflow_poll_test()
We should to check the return value of trigger_eventfd_overflow() in overflow_poll_test().
---
testcases/kernel/syscalls/eventfd/eventfd01.c +1 -1
@@ -602,7 +602,7 @@ static void overflow_poll_test(int evfd)int ret; ret =trigger_eventfd_overflow (evfd, &fd, &ctx); -if (fd ==-1 ) { +if (ret ==-1 ) {tst_resm (TBROK ,"error triggering eventfd overflow" );return ; }
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 10 lines · Shi Weihua
We should to check the return value of
trigger_eventfd_overflow()inoverflow_poll_test().Signed-off-by Shi Weihua <[email protected]>---
testcases/kernel/syscalls/eventfd/eventfd01.c +0
-0
testcases/kernel/syscalls/eventfd/eventfd01.c static void overflow_poll_test(int evfd) · line 608
Quoted 8 lines
testcases/kernel/syscalls/eventfd/eventfd01.c +1
-1@@ -602,7 +602,7 @@ static void overflow_poll_test(int evfd) int ret; ret = trigger_eventfd_overflow(evfd, &fd, &ctx); - if (fd == -1) { + if (ret == -1) { tst_resm(TBROK, "error triggering eventfd overflow"); return; }
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 13 lines · Garrett Cooper
Quoted 12 lines · Shi Weihua
We should to check the return value of
trigger_eventfd_overflow()inoverflow_poll_test().Signed-off-by Shi Weihua <[email protected]>---
testcases/kernel/syscalls/eventfd/eventfd01.c +0
-0@@ -602,7 +602,7 @@ static void overflow_poll_test(int evfd)int ret;
Quoted 8 lines
testcases/kernel/syscalls/eventfd/eventfd01.c static void overflow_poll_test(int evfd) · line 608
Quoted 6 lines
testcases/kernel/syscalls/eventfd/eventfd01.c +1
-1ret =trigger_eventfd_overflow (evfd, &fd, &ctx); -if (fd ==-1 ) { +if (ret ==-1 ) {tst_resm (TBROK ,"error triggering eventfd overflow" );return ; }Acked-by Garrett Cooper <[email protected]>
Thanks. Just checked in.
Regards--
Subrata
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list