summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-11-17 19:52:08 +0000
committerJim Meyering <jim@meyering.net>2005-11-17 19:52:08 +0000
commite663408a22264b0318549c2229ef73550be80302 (patch)
treee70892eb71156903e188ab33d03fb20268a9b081 /tests
parentb02d160c35d95cea64452fc6285b779f0ab8d53f (diff)
downloadcoreutils-e663408a22264b0318549c2229ef73550be80302.tar.xz
Let traps handle removing temporary directories.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/acl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mv/acl b/tests/mv/acl
index 716d19589..9ffb86a6e 100755
--- a/tests/mv/acl
+++ b/tests/mv/acl
@@ -4,9 +4,6 @@
. $srcdir/../acl
. $srcdir/setup
-if test -z "$other_partition_tmpdir"; then
- exit 77
-fi
# Make sure we get English translations.
. $srcdir/../lang-default
@@ -22,6 +19,11 @@ 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
+if test -z "$other_partition_tmpdir"; then
+ (exit 77); exit 77
+fi
+t0="$t0 $other_partition_tmpdir"
+
framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
@@ -60,6 +62,4 @@ if test $framework_failure = 1; then
(exit 1); exit 1
fi
-cd $pwd
-rm -fr $tmp $other_partition_tmpdir
exit $fail