diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2014-02-07 17:14:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-02-07 17:15:56 +0100 |
commit | 3ba2df874ca27f075a0897210d8dce6c56646e60 (patch) | |
tree | 8d8b56ec8092ab4da85abd275998b2da457dbef7 /testsuite | |
parent | 07f417b6ab92e0429f302ff6783bb9681b60120e (diff) | |
download | busybox-w32-3ba2df874ca27f075a0897210d8dce6c56646e60.tar.gz busybox-w32-3ba2df874ca27f075a0897210d8dce6c56646e60.tar.bz2 busybox-w32-3ba2df874ca27f075a0897210d8dce6c56646e60.zip |
grep: properly handle grep -w "^str" in !EXTRA_COMPAT case too
function old new delta
grep_file 1267 1288 +21
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 412efffbb..74b0eb63f 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -159,6 +159,12 @@ testing "grep -w ^ doesn't hang" \ | |||
159 | "anything\n" \ | 159 | "anything\n" \ |
160 | "" | 160 | "" |
161 | 161 | ||
162 | testing "grep -w word doesn't match wordword" \ | ||
163 | "grep -w word input" \ | ||
164 | "" \ | ||
165 | "wordword\n" \ | ||
166 | "" | ||
167 | |||
162 | # testing "test name" "commands" "expected result" "file input" "stdin" | 168 | # testing "test name" "commands" "expected result" "file input" "stdin" |
163 | # file input will be file called "input" | 169 | # file input will be file called "input" |
164 | # test can create a file "actual" instead of writing to stdout | 170 | # test can create a file "actual" instead of writing to stdout |