summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-05 15:12:14 +0000
committerJim Meyering <jim@meyering.net>2000-11-05 15:12:14 +0000
commit81f10fbd436d251eab55d53bee69716d84cdd1eb (patch)
treec91d8de8bc3be415efbf175e9dac4529d6bee8d2 /tests
parenta44e5341bb9a0dfa7589215cccfcd9a9ef90e3b6 (diff)
downloadcoreutils-81f10fbd436d251eab55d53bee69716d84cdd1eb.tar.xz
Clean up this test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/mv-special-117
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/mv/mv-special-1 b/tests/mv/mv-special-1
index 412e1e6f6..f004b05ed 100755
--- a/tests/mv/mv-special-1
+++ b/tests/mv/mv-special-1
@@ -1,11 +1,22 @@
#! /bin/sh
+if test "$VERBOSE" = yes; then
+ set -x
+ FIXME --version
+fi
+
+pwd=`pwd`
+tmp=mv-spec.$$
+trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp $other_partition_tmpdir && exit $status' 0
+trap '(exit $?); exit' 1 2 13 15
+
. $srcdir/setup
+. $srcdir/../envvar-check
# Make sure we get English translations.
. $srcdir/../lang-default
if test -z "$other_partition_tmpdir"; then
- exit 77
+ (exit 77); exit
fi
null=.mv-null
@@ -75,6 +86,4 @@ cmp out2 exp || fail=1
# cd $other_partition_tmpdir
# ls -l -A -R $other_partition_tmpdir
-rm -rf $null $dir $other_partition_tmpdir out out2 exp
-
-exit $fail
+(exit $fail); exit