aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-10-30 16:47:29 -0500
committerRob Landley <rob@landley.net>2014-10-30 16:47:29 -0500
commit82671e1ed5f06e016398f3d2de5f3c2ba388713d (patch)
tree853f33c7b9e657a4e8cd16689e595b529e751f75 /tests
parentbaa7f5cad548d8eceed45bebe4631f0e177bd8f0 (diff)
downloadtoybox-82671e1ed5f06e016398f3d2de5f3c2ba388713d.tar.gz
Test for ls -d from Isaac Dunham, and he pointed out -F also disables symlink following.
Diffstat (limited to 'tests')
-rw-r--r--tests/ls.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ls.test b/tests/ls.test
index d052f13a..9866eb78 100644
--- a/tests/ls.test
+++ b/tests/ls.test
@@ -37,6 +37,10 @@ testing "ls softlink - long listing" "$IN && ls -l slink | awk '{ print \$NF }'
"file1.txt\n" "" ""
rm -f lstest/slink
+ln -s /dev/null/nosuchfile lstest/nosuchfile
+testing "ls with -d - broken softlink" "$IN && ls -d nosuchfile; $OUT" "nosuchfile\n" "" ""
+rm -f lstest/nosuchfile
+
rm -rf lstest/* && mkdir -p lstest/dir1 && touch lstest/file1.txt
testing "ls nested recursively" "$IN && ls -R; $OUT" \
".:\ndir1\nfile1.txt\n\n./dir1:\n" "" ""