aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/ls.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ls.test b/tests/ls.test
index c207c3f6..4856da5c 100755
--- a/tests/ls.test
+++ b/tests/ls.test
@@ -54,8 +54,7 @@ rm -rf lstest/* && touch lstest/file1.txt && INODE=`stat -c %i lstest/file1.txt`
testing "with -i" "$IN && ls -i 2>/dev/null; $OUT" "$INODE file1.txt\n" "" ""
unset INODE
-testing "missing" "$IN && ls does-not-exist 2>err ; grep -q 'ls:.*missing.*: No
-such file' err || echo missing error; $OUT" "" "" ""
+testing "missing" "$IN && ls does-not-exist 2>&1 >/dev/null | grep -o does-not-exist; $OUT" "does-not-exist\n" "" ""
rm -f lstest/{file1.txt,err}
touch lstest/{one,two,three,four,five,six,seven,eight,nine,ten}