From: Jim Meyering Date: Sat, 21 Feb 1998 11:39:06 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-3_16m~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd9a38183c2c932f90db97918aa05ad48c8af878;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/mv/Makefile.am b/tests/mv/Makefile.am index fdbab869be..c44750cd17 100644 --- a/tests/mv/Makefile.am +++ b/tests/mv/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = 1.1 gnits TESTS = mv-special-1 -EXTRA_DIST = $(TESTS) +EXTRA_DIST = $(TESTS) setup TESTS_ENVIRONMENT = RM=../../src/rm MKDIR=../../src/mkdir \ MKNOD=../../src/mknod MV=../../src/mv DF=../../src/df diff --git a/tests/mv/mv-special-1 b/tests/mv/mv-special-1 index 0cc9f1f7bc..ca8525dcd8 100755 --- a/tests/mv/mv-special-1 +++ b/tests/mv/mv-special-1 @@ -11,8 +11,19 @@ if test -z $other_partition_tmpdir; then fi null=.mv-null -$RM -f $null -$MKNOD $null p -$MV $null $other_partition_tmpdir + +test_failure=0 + +$RM -f $null || test_failure=1 +$MKNOD $null p || test_failure=1 +if test $test_failure = 1; then + echo 'failure in testing framework' + exit 1 +fi + +fail=0 +$MV $null $other_partition_tmpdir || fail=1 $RM -rf $null $other_partition_tmpdir + +exit $fail