diff options
author | Elliott Hughes <enh@google.com> | 2019-03-13 22:21:13 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-14 10:31:07 -0500 |
commit | caa5a3b131137d1063ea466e57204b9375701499 (patch) | |
tree | bcedf6547bef6368cde5bca82ac047a3dcaa1939 /tests/grep.test | |
parent | 4157ed0625ff7b166adac36d97988716651fde9e (diff) | |
download | toybox-caa5a3b131137d1063ea466e57204b9375701499.tar.gz |
grep: use TOYFLAG_ARGFAIL for grep too.
Also add a test, and add a test for timeout now it's been fixed.
Diffstat (limited to 'tests/grep.test')
-rwxr-xr-x | tests/grep.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/grep.test b/tests/grep.test index 05288983..cd1e1fda 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -154,3 +154,5 @@ testing "explicit ERE |" "grep -E 'uno|dos'" "uno\ndos\nuno|dos\n" \ testing "" "grep -o -e iss -e ipp" "iss\niss\nipp\n" "" "mississippi" testing "" "grep -o -e gum -e rgu" "rgu\n" "" "argument" + +testing "early failure" 'grep --what 2>/dev/null || echo $?' "2\n" "" "" |