diff options
author | Bartosz Golaszewski | 2013-05-15 03:53:26 +0200 |
---|---|---|
committer | Denys Vlasenko | 2013-05-15 09:20:40 +0200 |
commit | 414db791d0dc79905e5afe20e503941b8f9778cc (patch) | |
tree | 4a58cd4e72f9744ea57e549f393b2a07891d2e64 /testsuite | |
parent | e0a6ab698fb5d44ec7944278a69fdcebaf773ba2 (diff) | |
download | busybox-414db791d0dc79905e5afe20e503941b8f9778cc.zip busybox-414db791d0dc79905e5afe20e503941b8f9778cc.tar.gz |
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')
-rwxr-xr-x | testsuite/grep.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 4781f22..5696fa7 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests @@ -127,6 +127,12 @@ testing "grep -Fw doesn't stop on 1st mismatch" \ "foop foo\n" \ "" +testing "grep -w doesn't stop on 1st mismatch" \ + "grep -w foo input" \ + "foop foo\n" \ + "foop foo\n" \ + "" + # testing "test name" "commands" "expected result" "file input" "stdin" # file input will be file called "input" # test can create a file "actual" instead of writing to stdout |