From: Subrata <sub...@us...> - 2009-02-26 13:18:57
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/munlockall In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4515/ltp/testcases/kernel/syscalls/munlockall Modified Files: munlockall01.c munlockall02.c Log Message: Clear Trailing Whitespace. Signed-off-by: Michal Simek <mo...@mo...>. Index: munlockall02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/munlockall/munlockall02.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** munlockall02.c 27 Feb 2006 04:29:22 -0000 1.6 --- munlockall02.c 26 Feb 2009 12:04:39 -0000 1.7 *************** *** 16,30 **** */ /************************************************************************** ! * * TEST IDENTIFIER : munlockall02 ! * * EXECUTED BY : root / superuser ! * * TEST TITLE : test for EPERM error value when run as non superuser ! * * TEST CASE TOTAL : 1 ! * * AUTHOR : sowmya adiga<sow...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. --- 16,30 ---- */ /************************************************************************** ! * * TEST IDENTIFIER : munlockall02 ! * * EXECUTED BY : root / superuser ! * * TEST TITLE : test for EPERM error value when run as non superuser ! * * TEST CASE TOTAL : 1 ! * * AUTHOR : sowmya adiga<sow...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. *************** *** 34,43 **** * Verify munlockall(2) returns -1 and sets errno to EPERM * if the effective userid of the caller is not super-user. ! * * Setup: * Setup signal handling. * Pause for SIGUSR1 if option specified. * Change effective user id to "nobody" user ! * * Test: * Loop if the proper options are given. --- 34,43 ---- * Verify munlockall(2) returns -1 and sets errno to EPERM * if the effective userid of the caller is not super-user. ! * * Setup: * Setup signal handling. * Pause for SIGUSR1 if option specified. * Change effective user id to "nobody" user ! * * Test: * Loop if the proper options are given. *************** *** 49,57 **** * Issue sys call fails with unexpected errno. * ! * * Cleanup: * change effective user id to root * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * munlockall02 [-c n] [-e] [-i n] [-I x] [-p x] [-t] --- 49,57 ---- * Issue sys call fails with unexpected errno. * ! * * Cleanup: * change effective user id to root * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * munlockall02 [-c n] [-e] [-i n] [-I x] [-p x] [-t] *************** *** 107,111 **** TEST(munlockall()); ! TEST_ERROR_LOG(TEST_ERRNO); /* check return code */ if ((TEST_RETURN == -1) && (TEST_ERRNO == EPERM)){ --- 107,111 ---- TEST(munlockall()); ! TEST_ERROR_LOG(TEST_ERRNO); /* check return code */ if ((TEST_RETURN == -1) && (TEST_ERRNO == EPERM)){ *************** *** 118,122 **** EPERM,TEST_ERRNO, strerror(TEST_ERRNO)); ! } } --- 118,122 ---- EPERM,TEST_ERRNO, strerror(TEST_ERRNO)); ! } } Index: munlockall01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/munlockall/munlockall01.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** munlockall01.c 27 Feb 2006 04:29:22 -0000 1.3 --- munlockall01.c 26 Feb 2009 12:04:39 -0000 1.4 *************** *** 16,30 **** */ /************************************************************************** ! * * TEST IDENTIFIER : munlockall01 ! * * EXECUTED BY : root / superuser ! * * TEST TITLE : Basic test for munlockall(2) ! * * TEST CASE TOTAL : 1 ! * * AUTHOR : sowmya adiga<sow...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. --- 16,30 ---- */ /************************************************************************** ! * * TEST IDENTIFIER : munlockall01 ! * * EXECUTED BY : root / superuser ! * * TEST TITLE : Basic test for munlockall(2) ! * * TEST CASE TOTAL : 1 ! * * AUTHOR : sowmya adiga<sow...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. *************** *** 38,42 **** * Setup signal handling. * Pause for SIGUSR1 if option specified. ! * * Test: * Execute system call --- 38,42 ---- * Setup signal handling. * Pause for SIGUSR1 if option specified. ! * * Test: * Execute system call *************** *** 44,51 **** * Log the errno and Issue a FAIL message. * Otherwise, Issue a PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * munlockall01 [-c n] [-e] [-i n] [-I x] [-p x] [-t] --- 44,51 ---- * Log the errno and Issue a FAIL message. * Otherwise, Issue a PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * munlockall01 [-c n] [-e] [-i n] [-I x] [-p x] [-t] |