summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-28 14:02:58 +0000
committerJim Meyering <jim@meyering.net>2003-03-28 14:02:58 +0000
commit98458bfd368ef9d85e6e210be5d547d2ccbca8c9 (patch)
tree3c26f383b5b1d13a79e491992b7e1a53b9750d30 /tests
parente93c93de4eef88775a3a0a64a68c26316913770f (diff)
downloadcoreutils-98458bfd368ef9d85e6e210be5d547d2ccbca8c9.tar.xz
Use seq, not `yes' to generate link target.
Otherwise, on systems (DJGPP) that emulate pipes using files, this test would never complete, waiting for `yes' to terminate.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/du/slink2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/du/slink b/tests/du/slink
index 7469b9138..fecd39770 100755
--- a/tests/du/slink
+++ b/tests/du/slink
@@ -34,7 +34,7 @@ fi
fail=0
symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
for len in $symlink_name_lengths; do
- name=`yes|tr '\n' y|head -c$len`
+ name=`seq 1 $len|tr -c x y |head -c$len`
# Record the names of symlinks that are successfully created.
ln -fs $name $len > /dev/null 2>&1 \
&& symlinks="$symlinks $len"