diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-15 10:04:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-15 10:04:30 +0000 |
commit | a2e113a2dbb974fa11d5ced540e4878344c7eb4a (patch) | |
tree | afc16b6b140ed6dd46eccd15782cc7da3a6f44aa /tests/chmod/equal-x | |
parent | 767aa7bf70bf28988668ed1213085f9fd8ac5767 (diff) | |
download | coreutils-a2e113a2dbb974fa11d5ced540e4878344c7eb4a.tar.xz |
use trap stuff from sample-test
Diffstat (limited to 'tests/chmod/equal-x')
-rwxr-xr-x | tests/chmod/equal-x | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x index e938dc048..49f81f28e 100755 --- a/tests/chmod/equal-x +++ b/tests/chmod/equal-x @@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then fi pwd=`pwd` -tmp=eq-x-$$ -trap 'status=$?; cd $pwd; chmod -R a+rwx $tmp; rm -rf $tmp && exit $status' 0 +t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ +trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 |