summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-03 04:40:07 +0000
committerJim Meyering <jim@meyering.net>1997-11-03 04:40:07 +0000
commit07e8ae7cb1c74925d68a858efcf2c7e4bded9f80 (patch)
tree021c8e78110e814d412df1a6790449483bc8bca8 /tests/rm
parent1b3376c9dac2897bd85db895c4659572695dd9ea (diff)
downloadcoreutils-07e8ae7cb1c74925d68a858efcf2c7e4bded9f80.tar.xz
create 100 at a time
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/r-312
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/rm/r-3 b/tests/rm/r-3
index a5ee7036f..972ea0b83 100755
--- a/tests/rm/r-3
+++ b/tests/rm/r-3
@@ -17,15 +17,17 @@ 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 `expr $i = $n` = 1 && break
- i=`expr $i + 1`
-done
+( while :; do echo $i; test $i = 100 && break; i=`expr $i + 1`; done ) > $tmp/.1
+touch `cat $tmp/.1` || framework_fail=1
+( while :; do echo $i; test $i = 200 && break; i=`expr $i + 1`; done ) > $tmp/.2
+touch `cat $tmp/.2` || framework_fail=1
+( while :; do echo $i; test $i = $n && break; i=`expr $i + 1`; done ) > $tmp/.3
+touch `cat $tmp/.3` || framework_fail=1
test -f $tmp/$a || framework_fail=1
test -f $tmp/$n || framework_fail=1