aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/ls.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ls.test b/tests/ls.test
index b29c478a..56f74034 100755
--- a/tests/ls.test
+++ b/tests/ls.test
@@ -33,8 +33,9 @@ testing "with -F" "$IN && ls -F; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" ""
testing "with -dk *" "$IN && ls -dk *; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" ""
ln -s file1.txt lstest/slink
-testing "softlink - long listing" "$IN && ls -l slink | awk '{ print \$NF }' ; $OUT" \
- "file1.txt\n" "" ""
+testing "-l symlink" \
+ "$IN && ls -l slink | grep -q -- ' slink -> file1.txt' && echo ok ; $OUT" \
+ "ok\n" "" ""
rm -f lstest/slink
ln -s /dev/null/nosuchfile lstest/nosuchfile