summaryrefslogtreecommitdiff
path: root/tests/chmod/equal-x
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-15 10:04:30 +0000
committerJim Meyering <jim@meyering.net>2002-06-15 10:04:30 +0000
commita2e113a2dbb974fa11d5ced540e4878344c7eb4a (patch)
treeafc16b6b140ed6dd46eccd15782cc7da3a6f44aa /tests/chmod/equal-x
parent767aa7bf70bf28988668ed1213085f9fd8ac5767 (diff)
downloadcoreutils-a2e113a2dbb974fa11d5ced540e4878344c7eb4a.tar.xz
use trap stuff from sample-test
Diffstat (limited to 'tests/chmod/equal-x')
-rwxr-xr-xtests/chmod/equal-x4
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