SIGINT should be replaced with SIGTERM, because SIGINT is ignored by "trap '' INT" in bin/run-tests.sh.
"Test: PASS\n" is replaced with "Test: PASSED\n". Signed-off-by: Peng Haitao <[email protected]> --- .../conformance/interfaces/sched_yield/1-1.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c index fa3886a..dd7b452 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c @@ -111,15 +111,15 @@ int main(void) } /* Can only get here if sched_yield works. */ - kill(pid, SIGINT); + kill(pid, SIGTERM); waitpid(pid, &s, 0); status = PTS_PASS; if (WIFSIGNALED(s)) { s = WTERMSIG(s); - if (s != SIGINT) { + if (s != SIGTERM) { printf("Failed: kill signal: %d, should be: %d\n", - s, SIGINT); + s, SIGTERM); status = PTS_FAIL; } } else if (WIFEXITED(s)) { @@ -129,7 +129,7 @@ int main(void) } if (status == PTS_PASS) - printf("Test: PASS\n"); + printf("Test: PASSED\n"); return status; } -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
