aboutsummaryrefslogtreecommitdiff
path: root/testsuite/grep.tests
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartekgola@gmail.com>2013-05-15 03:53:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-05-15 09:20:40 +0200
commit414db791d0dc79905e5afe20e503941b8f9778cc (patch)
tree4a58cd4e72f9744ea57e549f393b2a07891d2e64 /testsuite/grep.tests
parente0a6ab698fb5d44ec7944278a69fdcebaf773ba2 (diff)
downloadbusybox-w32-414db791d0dc79905e5afe20e503941b8f9778cc.tar.gz
busybox-w32-414db791d0dc79905e5afe20e503941b8f9778cc.tar.bz2
busybox-w32-414db791d0dc79905e5afe20e503941b8f9778cc.zip
grep: don't bail out on first mismatch if '-w' option is set
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-xtestsuite/grep.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index 4781f2284..5696fa7e1 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -127,6 +127,12 @@ testing "grep -Fw doesn't stop on 1st mismatch" \
127 "foop foo\n" \ 127 "foop foo\n" \
128 "" 128 ""
129 129
130testing "grep -w doesn't stop on 1st mismatch" \
131 "grep -w foo input" \
132 "foop foo\n" \
133 "foop foo\n" \
134 ""
135
130# testing "test name" "commands" "expected result" "file input" "stdin" 136# testing "test name" "commands" "expected result" "file input" "stdin"
131# file input will be file called "input" 137# file input will be file called "input"
132# test can create a file "actual" instead of writing to stdout 138# test can create a file "actual" instead of writing to stdout