From: Subrata <sub...@us...> - 2009-02-26 13:17:22
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4515/ltp/testcases/kernel/syscalls/ioperm Modified Files: ioperm01.c ioperm02.c Log Message: Clear Trailing Whitespace. Signed-off-by: Michal Simek <mo...@mo...>. Index: ioperm01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm/ioperm01.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ioperm01.c 26 Feb 2009 11:43:57 -0000 1.9 --- ioperm01.c 26 Feb 2009 12:03:43 -0000 1.10 *************** *** 16,30 **** */ /********************************************************** ! * * TEST IDENTIFIER : ioperm01 ! * * EXECUTED BY : superuser ! * * TEST TITLE : Basic test for ioperm(2) ! * * TEST CASE TOTAL : 1 * * AUTHOR : Subhab Biswas <sub...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. --- 16,30 ---- */ /********************************************************** ! * * TEST IDENTIFIER : ioperm01 ! * * EXECUTED BY : superuser ! * * TEST TITLE : Basic test for ioperm(2) ! * * TEST CASE TOTAL : 1 * * AUTHOR : Subhab Biswas <sub...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. *************** *** 39,53 **** * Test caller is superuser * Pause for SIGUSR1 if option specified. ! * * Test: * Loop if the proper options are given. * Execute system call * Check return code, if system call failed (return=-1) ! * Issue FAIL message with errno. * Otherwise, Issue PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * ioperm01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] [-h] [-f] [-p] --- 39,53 ---- * Test caller is superuser * Pause for SIGUSR1 if option specified. ! * * Test: * Loop if the proper options are given. * Execute system call * Check return code, if system call failed (return=-1) ! * Issue FAIL message with errno. * Otherwise, Issue PASS message. ! * * Cleanup: * Print errno log and/or timing stats if options given ! * * USAGE: <for command-line> * ioperm01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] [-h] [-f] [-p] *************** *** 66,70 **** char *TCID = "ioperm01"; /* Test program identifier. */ ! #if defined __i386__ || defined(__x86_64__) #include <errno.h> --- 66,70 ---- char *TCID = "ioperm01"; /* Test program identifier. */ ! #if defined __i386__ || defined(__x86_64__) #include <errno.h> *************** *** 125,129 **** "address %ld, returned %d", io_addr, TEST_RETURN); ! } } /* End for TEST_LOOPING */ --- 125,129 ---- "address %ld, returned %d", io_addr, TEST_RETURN); ! } } /* End for TEST_LOOPING */ *************** *** 151,155 **** /* ! * The value of IO_BITMAP_BITS (include/asm-i386/processor.h) changed * from kernel 2.6.8 to permit 16-bits ioperm * --- 151,155 ---- /* ! * The value of IO_BITMAP_BITS (include/asm-i386/processor.h) changed * from kernel 2.6.8 to permit 16-bits ioperm * Index: ioperm02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm/ioperm02.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ioperm02.c 26 Feb 2009 11:43:57 -0000 1.9 --- ioperm02.c 26 Feb 2009 12:03:43 -0000 1.10 *************** *** 16,30 **** */ /********************************************************** ! * * TEST IDENTIFIER : ioperm02 ! * * EXECUTED BY : superuser ! * * TEST TITLE : Tests for error conditions ! * * TEST CASE TOTAL : 2 ! * * AUTHOR : Subhab Biwas <sub...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. --- 16,30 ---- */ /********************************************************** ! * * TEST IDENTIFIER : ioperm02 ! * * EXECUTED BY : superuser ! * * TEST TITLE : Tests for error conditions ! * * TEST CASE TOTAL : 2 ! * * AUTHOR : Subhab Biwas <sub...@wi...> ! * * SIGNALS * Uses SIGUSR1 to pause before test if option set. *************** *** 33,40 **** * DESCRIPTION * Verify that ! * 1) ioperm(2) returns -1 and sets errno to EINVAL for I/O port ! * address greater than 0x3ff. * 2) ioperm(2) returns -1 and sets errno to EPERM if the current ! * user is not the super-user. * * Setup: --- 33,40 ---- * DESCRIPTION * Verify that ! * 1) ioperm(2) returns -1 and sets errno to EINVAL for I/O port ! * address greater than 0x3ff. * 2) ioperm(2) returns -1 and sets errno to EPERM if the current ! * user is not the super-user. * * Setup: *************** *** 107,111 **** char *desc; /* test case description */ int exp_errno; /* expected error number */ ! }; int TST_TOTAL = 2; --- 107,111 ---- char *desc; /* test case description */ int exp_errno; /* expected error number */ ! }; int TST_TOTAL = 2; *************** *** 161,165 **** } ! TEST_ERROR_LOG(TEST_ERRNO); if (i == 1) { --- 161,165 ---- } ! TEST_ERROR_LOG(TEST_ERRNO); if (i == 1) { *************** *** 168,172 **** } else { } ! } } /* End for TEST_LOOPING */ --- 168,172 ---- } else { } ! } } /* End for TEST_LOOPING */ *************** *** 222,226 **** /* ! * The value of IO_BITMAP_BITS (include/asm-i386/processor.h) changed * from kernel 2.6.8 to permit 16-bits (65536) ioperm * --- 222,226 ---- /* ! * The value of IO_BITMAP_BITS (include/asm-i386/processor.h) changed * from kernel 2.6.8 to permit 16-bits (65536) ioperm * *************** *** 238,242 **** if ((tst_kvercmp(2,6,8) < 0) || (tst_kvercmp(2,6,9) == 0)) { /*try invalid ioperm on 1022, 1023, 1024*/ ! test_cases[0].from = (IO_BITMAP_BITS - NUM_BYTES) + 1; /*try get valid ioperm on 1021, 1022, 1023*/ --- 238,242 ---- if ((tst_kvercmp(2,6,8) < 0) || (tst_kvercmp(2,6,9) == 0)) { /*try invalid ioperm on 1022, 1023, 1024*/ ! test_cases[0].from = (IO_BITMAP_BITS - NUM_BYTES) + 1; /*try get valid ioperm on 1021, 1022, 1023*/ |