From 30690e6b57f71e65d0c21b24b39d62bf083fce5c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 12 Nov 2001 13:06:16 +0000 Subject: clean up --- tests/rm/r-3 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/rm/r-3 b/tests/rm/r-3 index 58296106d..bbea37001 100755 --- a/tests/rm/r-3 +++ b/tests/rm/r-3 @@ -14,23 +14,24 @@ tmp=$TMPDIR/t-rm.$$ framework_fail=0 mkdir $tmp || framework_fail=1 - -a=1 -n=300 -i=$a -echo "creating $n files in $tmp..." -while :; do - touch $tmp/$i || framework_fail=1 - test $i = $n && break - i=`expr $i + 1` +cd $tmp || framework_fail=1 + +# Create 300 files (12 * 25). +for i in 0 1 2 3 4 5 6 7 8 9 a b; do + files= + for j in a b c d e f g h i j k l m n o p q r s t u v w x y; do + files="$files $i$j" + done + touch $files || framework_fail=1 done -test -f $tmp/$a || framework_fail=1 -test -f $tmp/$n || framework_fail=1 +test -f 0a || framework_fail=1 +test -f by || framework_fail=1 +cd .. || framework_fail=1 if test $framework_fail = 1; then echo 'failure in testing framework' - exit 1 + (exit 1); exit fi fail=0 -- cgit v1.2.3-70-g09d2