summaryrefslogtreecommitdiff
path: root/tests/du/deref-args
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-19 08:29:09 +0000
committerJim Meyering <jim@meyering.net>2003-09-19 08:29:09 +0000
commit91bc10f713ff80b7a26b63a9522cb484ea24a405 (patch)
treebecf2daa4ff4ff008a7166ebbd8bf4bcc6c77971 /tests/du/deref-args
parent567e58cd2dd50d9c7b09226b486f437250bf84b7 (diff)
downloadcoreutils-91bc10f713ff80b7a26b63a9522cb484ea24a405.tar.xz
*** empty log message ***
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