From: Jim Meyering Date: Sat, 15 Jun 2002 10:04:30 +0000 (+0000) Subject: use trap stuff from sample-test X-Git-Tag: FILEUTILS-4_1_9~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2e113a2dbb974fa11d5ced540e4878344c7eb4a;p=thirdparty%2Fcoreutils.git use trap stuff from sample-test --- diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x index e938dc0482..49f81f28e3 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