diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-08 10:23:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-08 10:23:45 +0000 |
commit | 04c9a5c2e49ea041a27e05a3a674f456614372c0 (patch) | |
tree | 54b66861529905a4998dc318e8c6a3f7876d2f3a /tests | |
parent | 66bada849bc2adced718371645e2ae5989c1c740 (diff) | |
download | coreutils-04c9a5c2e49ea041a27e05a3a674f456614372c0.tar.xz |
Ensure that hard links _are_ listed twice when using --count-links.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/du/hard-link | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/du/hard-link b/tests/du/hard-link index 7853cde28..e94c7c550 100755 --- a/tests/du/hard-link +++ b/tests/du/hard-link @@ -1,6 +1,7 @@ #!/bin/sh # Ensure that hard-linked files are counted (and listed) only once. # Likewise for excluded directories. +# Ensure that hard links _are_ listed twice when using --count-links. if test "$VERBOSE" = yes; then set -x @@ -30,9 +31,16 @@ fi fail=0 du -a --exclude=sub dir | sed 's/^[0-9][0-9]* //' > out || fail=1 +echo === >> out +du --count-links -a --exclude=sub dir | sed 's/^[0-9][0-9]* //' >> out \ + || fail=1 cat <<\EOF > exp dir/f1 dir +=== +dir/f1 +dir/f2 +dir EOF cmp out exp || fail=1 |