summaryrefslogtreecommitdiff
path: root/tests/rm/i-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-20 14:49:46 +0000
committerJim Meyering <jim@meyering.net>2002-04-20 14:49:46 +0000
commitc175e3f6c86206b676658c181556fc9b15f25f88 (patch)
tree45cb44e1b2b772d4253ca1c0d879281249625757 /tests/rm/i-1
parent73f2d110077745a8f4c297c26e3c8310f2251780 (diff)
downloadcoreutils-c175e3f6c86206b676658c181556fc9b15f25f88.tar.xz
update framework
Diffstat (limited to 'tests/rm/i-1')
-rwxr-xr-xtests/rm/i-16
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rm/i-1 b/tests/rm/i-1
index b0b90ce3a..4bf48e326 100755
--- a/tests/rm/i-1
+++ b/tests/rm/i-1
@@ -8,12 +8,12 @@ if test "$VERBOSE" = yes; then
fi
pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
+t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
+trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
test_failure=0
-mkdir $tmp || test_failure=1
+mkdir -p $tmp || test_failure=1
echo > $tmp/a || test_failure=1
test -f $tmp/a || test_failure=1