From: Martin R. <mr...@us...> - 2006-02-02 16:30:53
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/socket In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15796 Modified Files: socket01.c Log Message: Fix for defect 21065, the kernel changed the return for tests 4 & 9. I added dual tests on failure so new/old kernels should both pass Index: socket01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/socket/socket01.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** socket01.c 7 Feb 2005 19:40:16 -0000 1.3 --- socket01.c 2 Feb 2006 16:30:43 -0000 1.4 *************** *** 113,119 **** if (TEST_RETURN != tdat[testno].retval || (TEST_RETURN < 0 && ! TEST_ERRNO != tdat[testno].experrno)) { ! tst_resm(TFAIL, "%s ; returned" ! " %d (expected %d), errno %d (expected" " %d)", tdat[testno].desc, s, tdat[testno].retval, --- 113,119 ---- if (TEST_RETURN != tdat[testno].retval || (TEST_RETURN < 0 && ! (TEST_ERRNO != tdat[testno].experrno && TEST_ERRNO != EPROTONOSUPPORT))) { /* Change for defect 21065 for kernel change */ ! tst_resm(TFAIL, "%s ; returned" /* of return code for this test but don't want */ ! " %d (expected %d), errno %d (expected" /* to break on older kernels */ " %d)", tdat[testno].desc, s, tdat[testno].retval, |