aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-05-17 02:54:32 -0500
committerRob Landley <rob@landley.net>2019-05-17 02:54:32 -0500
commita39eab3fc7da89f2ee743dd116be632189f32c80 (patch)
treebbd3fa9e4dcdeb49c5d9032eb462ac2fbfe66267 /tests
parentada1b3ab1edab71a185fba6c2ee98d1985933be5 (diff)
downloadtoybox-a39eab3fc7da89f2ee743dd116be632189f32c80.tar.gz
Fix a missing else, and an inverted test hidden by the missing else.
Add test to show failure case.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/grep.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/grep.test b/tests/grep.test
index 798a9c6a..0e0f3c47 100755
--- a/tests/grep.test
+++ b/tests/grep.test
@@ -90,6 +90,8 @@ testing "-Fx ''" "grep -Fx '' input" "" "one one one\n" ""
testing "-F ''" "grep -F '' input" "one one one\n" "one one one\n" ""
testing "-F -e blah -e ''" "grep -F -e blah -e '' input" "one one one\n" \
"one one one\n" ""
+testing "-Fxv -e subset" "grep -Fxv -e bbswitch-dkms -e dkms" "" "" \
+ "bbswitch-dkms\n"
testing "-e blah -e ''" "grep -e blah -e '' input" "one one one\n" \
"one one one\n" ""
testing "-w ''" "grep -w '' input" "" "one one one\n" ""