diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-08 10:25:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-08 10:25:31 +0200 |
commit | 37ca36a71114a6fc5303d33cabc311cd8b9bf19a (patch) | |
tree | 28f9108375b2dc4050d447995f3fe497315d3d39 /testsuite | |
parent | ba1d561d767a6f05da62adadc798f98118b2a3ee (diff) | |
download | busybox-w32-37ca36a71114a6fc5303d33cabc311cd8b9bf19a.tar.gz busybox-w32-37ca36a71114a6fc5303d33cabc311cd8b9bf19a.tar.bz2 busybox-w32-37ca36a71114a6fc5303d33cabc311cd8b9bf19a.zip |
sed: yet another fix on top of zero length match code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed.tests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 12b36ae18..468565f47 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -302,10 +302,14 @@ testing "sed zero chars match/replace advances correctly 2" \ | |||
302 | "sed 's [^ .]* x g'" \ | 302 | "sed 's [^ .]* x g'" \ |
303 | "x x.x\n" "" " a.b\n" | 303 | "x x.x\n" "" " a.b\n" |
304 | 304 | ||
305 | testing "sed zero chars match/replace logic must not falsely trigger here" \ | 305 | testing "sed zero chars match/replace logic must not falsely trigger here 1" \ |
306 | "sed 's/a/A/g'" \ | 306 | "sed 's/a/A/g'" \ |
307 | "_AAA1AA\n" "" "_aaa1aa\n" | 307 | "_AAA1AA\n" "" "_aaa1aa\n" |
308 | 308 | ||
309 | testing "sed zero chars match/replace logic must not falsely trigger here 2" \ | ||
310 | "sed 's/ *$/_/g'" \ | ||
311 | "qwerty_\n" "" "qwerty\n" | ||
312 | |||
309 | # testing "description" "commands" "result" "infile" "stdin" | 313 | # testing "description" "commands" "result" "infile" "stdin" |
310 | 314 | ||
311 | exit $FAILCOUNT | 315 | exit $FAILCOUNT |