summaryrefslogtreecommitdiff
path: root/tests/du/slink
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-10-04 11:25:09 +0000
committerJim Meyering <jim@meyering.net>2002-10-04 11:25:09 +0000
commit215f635780212d95bfcd27c2f7c1645aab92bc78 (patch)
tree8d3a239fb1cf43123f55ca19a3b8968b5ca22136 /tests/du/slink
parent314c0eaa97082f391524d284e5f5b0dc3d5d2bbc (diff)
downloadcoreutils-215f635780212d95bfcd27c2f7c1645aab92bc78.tar.xz
add a comment
Diffstat (limited to 'tests/du/slink')
-rwxr-xr-xtests/du/slink5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/du/slink b/tests/du/slink
index 05b1df7f7..36fd31ab3 100755
--- a/tests/du/slink
+++ b/tests/du/slink
@@ -24,8 +24,9 @@ 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`
- # Ignore failures.
- ln -fs $name $len > /dev/null 2>&1 && symlinks="$symlinks $len"
+ # Record the names of symlinks that are successfully created.
+ ln -fs $name $len > /dev/null 2>&1 \
+ && symlinks="$symlinks $len"
done
du -a $symlinks > out || fail=1