aboutsummaryrefslogtreecommitdiff
path: root/tests/ls.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-11-23 05:07:25 -0600
committerRob Landley <rob@landley.net>2019-11-23 05:07:25 -0600
commit13e973c6134a2e169be870189102d1d0c5654952 (patch)
treec2cfa7eb3ff2aa447f97154c13469de238a2daa9 /tests/ls.test
parentcbab19ba55cf06140a97e217f9fa07d1fe809c6b (diff)
downloadtoybox-13e973c6134a2e169be870189102d1d0c5654952.tar.gz
Don't test for specific error message output, they vary by libc version.
Check that the filename we fed in is output to stderr.
Diffstat (limited to 'tests/ls.test')
-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}