From: <ro...@us...> - 2003-05-02 15:36:01
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/sigrelse In directory sc8-pr-cvs1:/tmp/cvs-serv22365 Modified Files: sigrelse03.core.c Log Message: Had test return PTS_UNRESOLVED if SIGSEGV caught. Index: sigrelse03.core.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/sigrelse/sigrelse03.core.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- sigrelse03.core.c 30 Apr 2003 20:51:00 -0000 1.2 +++ sigrelse03.core.c 2 May 2003 15:35:57 -0000 1.3 @@ -67,7 +67,7 @@ if (setjmp(sig11_recover)) { errno = EINVAL; - TEST_RETURN=-1; + TEST_RETURN=-2; } else { TEST_RETURN=sigrelse(signo); } @@ -81,6 +81,10 @@ printf ("errno not set to EINVAL\n"); return PTS_FAIL; } + } + if (TEST_RETURN == -2) { + printf ("test received SIGSEGV\n"); + return PTS_UNRESOLVED; } printf("sigrelse did not return -1\n"); |