From 414db791d0dc79905e5afe20e503941b8f9778cc Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 15 May 2013 03:53:26 +0200 Subject: grep: don't bail out on first mismatch if '-w' option is set Signed-off-by: Bartosz Golaszewski Signed-off-by: Denys Vlasenko --- testsuite/grep.tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuite/grep.tests') 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" \ "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 -- cgit v1.2.3