diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-04 02:48:14 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-04 02:48:14 +0100 |
commit | 6dc0ace10943b9f8e004b63277dc1186594f0450 (patch) | |
tree | fbfea896312234df57f330e16629c246a660aea0 /testsuite/grep.tests | |
parent | 6a110c969f357d5ab3503660c6404a1ee9d916eb (diff) | |
download | busybox-w32-6dc0ace10943b9f8e004b63277dc1186594f0450.tar.gz busybox-w32-6dc0ace10943b9f8e004b63277dc1186594f0450.tar.bz2 busybox-w32-6dc0ace10943b9f8e004b63277dc1186594f0450.zip |
grep: fix a case when -o loops forever
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-x | testsuite/grep.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 6e14f91ce..64df19ced 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -90,4 +90,9 @@ testing "grep -E -o prints all matches" \ | |||
90 | "00:19:3E:00:AA:5E\n00:1D:60:3D:3A:FB\n00:22:43:49:FB:AA\n" \ | 90 | "00:19:3E:00:AA:5E\n00:1D:60:3D:3A:FB\n00:22:43:49:FB:AA\n" \ |
91 | "" "00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA\n" | 91 | "" "00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA\n" |
92 | 92 | ||
93 | testing "grep -o does not loop forever" \ | ||
94 | 'grep -o "[^/]*$"' \ | ||
95 | "test\n" \ | ||
96 | "" "/var/test\n" | ||
97 | |||
93 | exit $FAILCOUNT | 98 | exit $FAILCOUNT |