From: Subrata <sub...@us...> - 2009-03-23 14:46:45
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/fchownat In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14647/ltp/testcases/kernel/syscalls/fchownat Modified Files: fchownat01.c Log Message: Coding Syle Cleanups. Signed-Off-By: <mic...@pe...>. Index: fchownat01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fchownat/fchownat01.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fchownat01.c 26 Feb 2009 12:02:55 -0000 1.5 --- fchownat01.c 23 Mar 2009 13:35:41 -0000 1.6 *************** *** 93,104 **** int i; ! /* Disable test if the version of the kernel is less than 2.6.16 */ ! if((tst_kvercmp(2,6,16)) < 0) ! { ! tst_resm(TWARN, "This test can only run on kernels that are "); ! tst_resm(TWARN, "2.6.16 and higher"); ! exit(0); ! } ! /*************************************************************** --- 93,102 ---- int i; ! /* Disable test if the version of the kernel is less than 2.6.16 */ ! if ((tst_kvercmp(2, 6, 16)) < 0) { ! tst_resm(TWARN, "This test can only run on kernels that are "); ! tst_resm(TWARN, "2.6.16 and higher"); ! exit(0); ! } /*************************************************************** *************** *** 127,131 **** for (i = 0; i < TST_TOTAL; i++) { TEST(myfchownat ! (fds[i], filenames[i], uid, gid, flags[i])); /* check return code */ --- 125,129 ---- for (i = 0; i < TST_TOTAL; i++) { TEST(myfchownat ! (fds[i], filenames[i], uid, gid, flags[i])); /* check return code */ *************** *** 235,239 **** strcpy(tmppathname, pathname); ! close (fd); unlink(testfile); unlink(testfile2); --- 233,237 ---- strcpy(tmppathname, pathname); ! close(fd); unlink(testfile); unlink(testfile2); |