diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-12 13:06:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-12 13:06:16 +0000 |
commit | 30690e6b57f71e65d0c21b24b39d62bf083fce5c (patch) | |
tree | c7dd48f12b87afadccadb0b9fd0c4f139316cc00 | |
parent | 2b22830114976b1a9404af32bede4bc4b23dfb33 (diff) | |
download | coreutils-30690e6b57f71e65d0c21b24b39d62bf083fce5c.tar.xz |
clean up
-rwxr-xr-x | tests/rm/r-3 | 25 |
1 files changed, 13 insertions, 12 deletions
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 |