diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-07 16:34:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-07 16:34:57 +0200 |
commit | 84406e459be31b89de5a3d822f205d61c4c5855b (patch) | |
tree | 0a7cea9477a581761c694c9668a28e334da2ceef /testsuite | |
parent | c35545a100c08d26d49fd1c2ca10e56e6650c5c1 (diff) | |
download | busybox-w32-84406e459be31b89de5a3d822f205d61c4c5855b.tar.gz busybox-w32-84406e459be31b89de5a3d822f205d61c4c5855b.tar.bz2 busybox-w32-84406e459be31b89de5a3d822f205d61c4c5855b.zip |
sed: fix breakage added by zero length match code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed.tests | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 375beb518..12b36ae18 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -302,6 +302,10 @@ 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" \ | ||
306 | "sed 's/a/A/g'" \ | ||
307 | "_AAA1AA\n" "" "_aaa1aa\n" | ||
308 | |||
305 | # testing "description" "commands" "result" "infile" "stdin" | 309 | # testing "description" "commands" "result" "infile" "stdin" |
306 | 310 | ||
307 | exit $FAILCOUNT | 311 | exit $FAILCOUNT |