This patch makes the test script cd into the tmp directory before running
the tests. This makes sure the script does not delete the original utimensat
binary, causing the test to fail on a second run.

Signed-off-by: Henry Yei<[email protected]>
--- ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh	2009-09-16 08:02:10.000000000 -0700
+++ ltp-wdir/testcases/kernel/syscalls/utimensat/utimensat_tests.sh	2010-02-05 14:36:50.048507944 -0800
@@ -61,7 +61,7 @@ setup_file()
 
     FILE=$1
 
-    # Make sure any old verion of file is deleted
+    # Make sure any old version of file is deleted
 
     if test -e $FILE; then
         sudo chattr -ai $FILE
@@ -126,7 +126,7 @@ check_result()
     fi
 
     read res atime mtime < $RESULT_FILE
-   
+
     echo "EXPECTED: $EXPECTED_RESULT $EXPECT_ATIME_CHANGED "\
          "$EXPECT_MTIME_CHANGED"
     echo "RESULT:   $res $atime $mtime"
@@ -245,7 +245,7 @@ run_test()
 
 user_tester=nobody
 sudo -u $user_tester mkdir -p $TEST_DIR
-
+cd $TEST_DIR
 chown root $LTPROOT/testcases/bin/$TEST_PROG
 chmod ugo+x,u+s $LTPROOT/testcases/bin/$TEST_PROG
 
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to