From: Mike F. <va...@us...> - 2009-08-28 12:01:44
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/clock_nanosleep In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4829 Modified Files: clock_nanosleep01.c Log Message: cleanup printf strings and errno handling Index: clock_nanosleep01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** clock_nanosleep01.c 7 Jul 2009 14:10:36 -0000 1.2 --- clock_nanosleep01.c 28 Aug 2009 12:01:29 -0000 1.3 *************** *** 296,300 **** TEST(rc = clock_gettime(tc->clk_id, &beftp)); if (rc < 0) { ! tst_resm(TFAIL, "iclock_gettime failed - errno = %d : %s", TEST_ERRNO, strerror(TEST_ERRNO)); result = 1; goto EXIT; --- 296,300 ---- TEST(rc = clock_gettime(tc->clk_id, &beftp)); if (rc < 0) { ! tst_resm(TFAIL|TTERRNO, "iclock_gettime failed"); result = 1; goto EXIT; *************** *** 456,460 **** default: ! tst_resm(TFAIL, "%s failed - errno = %d : %s", TCID, TEST_ERRNO, strerror(TEST_ERRNO)); tst_resm(TINFO,"NG"); cleanup(); --- 456,460 ---- default: ! tst_resm(TFAIL, "clock_nanosleep failed"); tst_resm(TINFO,"NG"); cleanup(); |