summaryrefslogtreecommitdiff
path: root/tests/mv/part-rename
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-16 19:18:22 +0000
committerJim Meyering <jim@meyering.net>2002-06-16 19:18:22 +0000
commit6d797a5b974fe4390f817c72550c8db26243aa6e (patch)
tree2277438940027c8b92dc05afabe30632cc242b79 /tests/mv/part-rename
parent3d16018d2e5c670087d8ade778c78b2b402ab690 (diff)
downloadcoreutils-6d797a5b974fe4390f817c72550c8db26243aa6e.tar.xz
use newer testing framework
Diffstat (limited to 'tests/mv/part-rename')
-rwxr-xr-xtests/mv/part-rename16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/mv/part-rename b/tests/mv/part-rename
index f6da1dc4d..9ce1e89df 100755
--- a/tests/mv/part-rename
+++ b/tests/mv/part-rename
@@ -8,27 +8,27 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-pwd=`pwd`
-tmp=part-ren.$$
-trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
. $srcdir/setup
. $srcdir/../envvar-check
+pwd=`pwd`
+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
fi
t0="$t0 $other_partition_tmpdir"
framework_failure=0
-mkdir $tmp || framework_failure=1
+mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir foo || framework_failure=1
if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
+ echo '$0: failure in testing framework' 1>&2
+ (exit 1); exit
fi
fail=0