]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
minor tweaks
authorJim Meyering <jim@meyering.net>
Thu, 22 Jan 1998 08:33:02 +0000 (08:33 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Jan 1998 08:33:02 +0000 (08:33 +0000)
tests/rm/ir-1
tests/rm/r-1
tests/rm/r-2

index 9c54a97364ad22942fca3c1080f636b04c6399cf..71418a30559dc520dbcb85bbd3dd14dbbee89328 100755 (executable)
@@ -15,7 +15,9 @@ tmp=$RM_TMPDIR/t-rm.$$
 
 test_failure=0
 mkdir $tmp $tmp/a $tmp/b $tmp/c || test_failure=1
-touch $tmp/a/a $tmp/b/bb $tmp/c/cc || test_failure=1
+> $tmp/a/a || test_failure=1
+> $tmp/b/bb || test_failure=1
+> $tmp/c/cc || test_failure=1
 
 if test $test_failure = 1; then
   echo 'failure in testing framework'
index afd21e2f8605873ae95a9437847bef45ca22bd6e..cc58feb5c18603804f4bc4e1d1fb9631fda58b00 100755 (executable)
@@ -13,10 +13,23 @@ if test "$VERBOSE" = yes; then
 fi
 
 tmp=$TMPDIR/t-rm.$$
-mkdir $tmp
 
-mkdir $tmp/a $tmp/a/a
-touch $tmp/b
+test_failure=0
+
+mkdir $tmp || test_failure=1
+mkdir $tmp/a $tmp/a/a || test_failure=1
+> $tmp/b || test_failure=1
+
+cat <<EOF > $tmp/$test.E || test_failure=1
+$tmp/a
+$tmp/a/a
+$tmp/b
+EOF
+
+if test $test_failure = 1; then
+  echo 'failure in testing framework'
+  exit 1
+fi
 
 fail=0
 $RM --verbose -r $tmp/a $tmp/b > $tmp/$test.O || fail=1
@@ -27,12 +40,6 @@ for d in $dirs; do
   fi
 done
 
-cat <<EOF > $tmp/$test.E
-$tmp/a
-$tmp/a/a
-$tmp/b
-EOF
-
 # Compare expected and actual output.
 cmp $tmp/$test.E $tmp/$test.O || fail=1
 
index 5c82c9074301c7b80cc7005666606e6ced40e090..5c284d0b1e7670bf022963e923e421b6a526c48a 100755 (executable)
@@ -13,7 +13,8 @@ fi
 tmp=$TMPDIR/t-rm.$$
 
 mkdir $tmp $tmp/a $tmp/a/b
-touch $tmp/a/f $tmp/a/b/g
+> $tmp/a/f
+> $tmp/a/b/g
 
 fail=0
 $RM --verbose -r $tmp/a > $tmp/$test.O || fail=1