From: Subrata <sub...@us...> - 2009-02-26 13:19:31
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/chdir In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4515/ltp/testcases/kernel/syscalls/chdir Modified Files: chdir02.c chdir03.c chdir04.c Log Message: Clear Trailing Whitespace. Signed-off-by: Michal Simek <mo...@mo...>. Index: chdir03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/chdir/chdir03.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** chdir03.c 11 Jul 2005 22:28:13 -0000 1.7 --- chdir03.c 26 Feb 2009 12:02:33 -0000 1.8 *************** *** 140,144 **** tst_resm(TFAIL, "call succeeded unexpectedly"); } else if (TEST_ERRNO != EACCES) { ! tst_resm(TFAIL, "expected EACCES - got %d", TEST_ERRNO); } else { --- 140,144 ---- tst_resm(TFAIL, "call succeeded unexpectedly"); } else if (TEST_ERRNO != EACCES) { ! tst_resm(TFAIL, "expected EACCES - got %d", TEST_ERRNO); } else { Index: chdir04.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/chdir/chdir04.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** chdir04.c 9 Feb 2007 20:48:23 -0000 1.8 --- chdir04.c 26 Feb 2009 12:02:33 -0000 1.9 *************** *** 24,28 **** * DESCRIPTION * Testcase to test whether chdir(2) sets errno correctly. ! * * ALGORITHM * 1. Test for ENAMETOOLONG: --- 24,28 ---- * DESCRIPTION * Testcase to test whether chdir(2) sets errno correctly. ! * * ALGORITHM * 1. Test for ENAMETOOLONG: *************** *** 67,71 **** int exp_enos[] = {ENAMETOOLONG, ENOENT, EFAULT, 0}; ! char bad_dir[] = "abcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyz"; char noexist_dir[] = "/tmp/noexistdir"; --- 67,71 ---- int exp_enos[] = {ENAMETOOLONG, ENOENT, EFAULT, 0}; ! char bad_dir[] = "abcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyz"; char noexist_dir[] = "/tmp/noexistdir"; Index: chdir02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/chdir/chdir02.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** chdir02.c 26 May 2006 06:26:37 -0000 1.2 --- chdir02.c 26 Feb 2009 12:02:33 -0000 1.3 *************** *** 33,63 **** /* $Id$ */ /********************************************************** ! * * OS Test - Silicon Graphics, Inc. ! * * TEST IDENTIFIER : chdir02 ! * * EXECUTED BY : anyone ! * * TEST TITLE : Basic test for chdir(2) ! * * PARENT DOCUMENT : usctpl01 ! * * TEST CASE TOTAL : 1 ! * * WALL CLOCK TIME : 1 ! * * CPU TYPES : ALL ! * * AUTHOR : William Roske ! * * CO-PILOT : Dave Fenner ! * * DATE STARTED : 03/30/92 ! * * INITIAL RELEASE : UNICOS 7.0 ! * * TEST CASES ! * * 1.) chdir(2) returns...(See Description) * --- 33,63 ---- /* $Id$ */ /********************************************************** ! * * OS Test - Silicon Graphics, Inc. ! * * TEST IDENTIFIER : chdir02 ! * * EXECUTED BY : anyone ! * * TEST TITLE : Basic test for chdir(2) ! * * PARENT DOCUMENT : usctpl01 ! * * TEST CASE TOTAL : 1 ! * * WALL CLOCK TIME : 1 ! * * CPU TYPES : ALL ! * * AUTHOR : William Roske ! * * CO-PILOT : Dave Fenner ! * * DATE STARTED : 03/30/92 ! * * INITIAL RELEASE : UNICOS 7.0 ! * * TEST CASES ! * * 1.) chdir(2) returns...(See Description) * *************** *** 65,74 **** * The standard options for system call tests are accepted. * (See the parse_opts(3) man page). ! * * OUTPUT SPECIFICATIONS * * DURATION * Terminates - with frequency and infinite modes. ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. --- 65,74 ---- * The standard options for system call tests are accepted. * (See the parse_opts(3) man page). ! * * OUTPUT SPECIFICATIONS * * DURATION * Terminates - with frequency and infinite modes. ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. *************** *** 77,90 **** * RESOURCES * None ! * * ENVIRONMENTAL NEEDS * No run-time environmental needs. ! * * SPECIAL PROCEDURAL REQUIREMENTS * None ! * * INTERCASE DEPENDENCIES * None ! * * DETAILED DESCRIPTION * This is a Phase I test for the chdir(2) system call. It is intended --- 77,90 ---- * RESOURCES * None ! * * ENVIRONMENTAL NEEDS * No run-time environmental needs. ! * * SPECIAL PROCEDURAL REQUIREMENTS * None ! * * INTERCASE DEPENDENCIES * None ! * * DETAILED DESCRIPTION * This is a Phase I test for the chdir(2) system call. It is intended *************** *** 92,100 **** * should/will be extended when full functional tests are written for * chdir(2). ! * * Setup: * Setup signal handling. * Pause for SIGUSR1 if option specified. ! * * Test: * Loop if the proper options are given. --- 92,100 ---- * should/will be extended when full functional tests are written for * chdir(2). ! * * Setup: * Setup signal handling. * Pause for SIGUSR1 if option specified. ! * * Test: * Loop if the proper options are given. *************** *** 103,111 **** * Log the errno and Issue a FAIL message. * Otherwise, Issue a PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * ! * *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#**/ --- 103,111 ---- * Log the errno and Issue a FAIL message. * Otherwise, Issue a PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * ! * *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#**/ *************** *** 134,138 **** int lc; /* loop counter */ char *msg; /* message returned from parse_opts */ ! /*************************************************************** * parse standard options --- 134,138 ---- int lc; /* loop counter */ char *msg; /* message returned from parse_opts */ ! /*************************************************************** * parse standard options *************** *** 157,161 **** Tst_count=0; ! /* * Call chdir(2) */ --- 157,161 ---- Tst_count=0; ! /* * Call chdir(2) */ *************** *** 175,179 **** /* No Verification test, yet... */ tst_resm(TPASS, "chdir(%s) returned %d", dirs[lc%2], TEST_RETURN); ! } } --- 175,179 ---- /* No Verification test, yet... */ tst_resm(TPASS, "chdir(%s) returned %d", dirs[lc%2], TEST_RETURN); ! } } *************** *** 191,195 **** * setup() - performs all ONE TIME setup for this test. ***************************************************************/ ! void setup() { --- 191,195 ---- * setup() - performs all ONE TIME setup for this test. ***************************************************************/ ! void setup() { *************** *** 207,211 **** * completion or premature exit. ***************************************************************/ ! void cleanup() { --- 207,211 ---- * completion or premature exit. ***************************************************************/ ! void cleanup() { |