From 8e03e30c057c2e63ad1a6469ffe6e5088b40bbe5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 7 May 1999 18:48:45 +0000 Subject: clean up --- tests/touch/empty-file | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'tests/touch/empty-file') diff --git a/tests/touch/empty-file b/tests/touch/empty-file index 3089ce4de..f6a8f1cf1 100755 --- a/tests/touch/empty-file +++ b/tests/touch/empty-file @@ -4,12 +4,9 @@ # fails to work on SunOS 4.1.3 with `most of the recommended patches' when # the empty file is on an NFS-mounted 4.2 volume. -: ${RM=rm} -: ${TOUCH=touch} - if test "$VERBOSE" = yes; then set -x - $TOUCH --version + touch --version fi DEFAULT_SLEEP_SECONDS=2 @@ -25,7 +22,7 @@ fail=0 framework_failure=0 for d in $TOUCH_DIR_LIST; do - $RM -rf $d/a $d/b + rm -rf $d/a $d/b > $d/a || framework_failure=1 test -f $d/a || framework_failure=1 > $d/b || framework_failure=1 @@ -39,18 +36,18 @@ fi sleep $SLEEP_SECONDS for d in $TOUCH_DIR_LIST; do - $TOUCH $d/a || fail=1 - set x `$LS -t $d/a $d/b` + touch $d/a || fail=1 + set x `ls -t $d/a $d/b` test "$*" = "x $d/a $d/b" || fail=1 done sleep $SLEEP_SECONDS for d in $TOUCH_DIR_LIST; do - $TOUCH $d/b - set x `$LS -t $d/a $d/b` + touch $d/b + set x `ls -t $d/a $d/b` test "$*" = "x $d/b $d/a" || fail=1 - $RM -rf $d/a $d/b + rm -rf $d/a $d/b done if test $fail != 0; then -- cgit v1.2.3-54-g00ecf