diff options
-rwxr-xr-x | tests/du/trailing-slash | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/du/trailing-slash b/tests/du/trailing-slash index ba0565018..8042c5898 100755 --- a/tests/du/trailing-slash +++ b/tests/du/trailing-slash @@ -27,10 +27,18 @@ fi fail=0 du slink/ | sed 's/^[0-9][0-9]* //' > out +echo === >> out + +# Ensure that with -L we get the same results even without the trailing slash. +du -L slink | sed 's/^[0-9][0-9]* //' >> out cat <<\EOF > exp slink/1/2 slink/1 -slink/ +slink +=== +slink/1/2 +slink/1 +slink EOF cmp out exp || fail=1 |