summaryrefslogtreecommitdiff
path: root/tests/du/deref-args
diff options
context:
space:
mode:
Diffstat (limited to 'tests/du/deref-args')
-rwxr-xr-xtests/du/deref-args7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/du/deref-args b/tests/du/deref-args
index c3cbaed9d..4b6588ef2 100755
--- a/tests/du/deref-args
+++ b/tests/du/deref-args
@@ -15,7 +15,7 @@ trap '(exit $?); exit $?' 1 2 13 15
framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
-mkdir -p dir/a/b
+mkdir -p dir/a
ln -s dir slink
if test $framework_failure = 1; then
@@ -26,8 +26,13 @@ fi
fail=0
du -D slink | sed 's/^[0-9][0-9]* //' > out
+# Ensure that the trailing slash is preserved and handled properly.
+du -D slink/ | sed 's/^[0-9][0-9]* //' >> out
cat <<\EOF > exp
+slink/a
slink
+slink/a
+slink/
EOF
cmp out exp || fail=1