From 37ca36a71114a6fc5303d33cabc311cd8b9bf19a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Jun 2012 10:25:31 +0200 Subject: sed: yet another fix on top of zero length match code Signed-off-by: Denys Vlasenko --- testsuite/sed.tests | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testsuite/sed.tests') 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" \ "sed 's [^ .]* x g'" \ "x x.x\n" "" " a.b\n" -testing "sed zero chars match/replace logic must not falsely trigger here" \ +testing "sed zero chars match/replace logic must not falsely trigger here 1" \ "sed 's/a/A/g'" \ "_AAA1AA\n" "" "_aaa1aa\n" +testing "sed zero chars match/replace logic must not falsely trigger here 2" \ + "sed 's/ *$/_/g'" \ + "qwerty_\n" "" "qwerty\n" + # testing "description" "commands" "result" "infile" "stdin" exit $FAILCOUNT -- cgit v1.2.3