summaryrefslogtreecommitdiff
path: root/RunGrepTest
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-02-10 17:39:29 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-02-10 17:39:29 +0000
commitc032264618175c4ea7008b9033e26e2d4a8c37c2 (patch)
tree3f91b7d0a57d11c3d9946fb2b682faad90d80f29 /RunGrepTest
parent114b2be3fe4b2c5c0c4bf3569be8f1617804a9b0 (diff)
downloadpcre2-c032264618175c4ea7008b9033e26e2d4a8c37c2.tar.gz
Fix previously broken fix for pcre2grep with -Mo matching strings that cross
line boundaries. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@662 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-xRunGrepTest5
1 files changed, 5 insertions, 0 deletions
diff --git a/RunGrepTest b/RunGrepTest
index afe3c1e..1ecb2be 100755
--- a/RunGrepTest
+++ b/RunGrepTest
@@ -593,6 +593,11 @@ echo "---------------------------- Test 118 -----------------------------" >>tes
(cd $srcdir; $valgrind $vjs $pcre2grep -tL 'the' testdata/grepinput*) >>testtrygrep
echo "RC=$?" >>testtrygrep
+echo "---------------------------- Test 119 -----------------------------" >>testtrygrep
+printf "123\n456\n789\n---abc\ndef\nxyz\n---\n" >testNinputgrep
+(cd $srcdir; $valgrind $vjs $pcre2grep -Mo '(\n|[^-])*---' testNinputgrep) >>testtrygrep
+echo "RC=$?" >>testtrygrep
+
# Now compare the results.
$cf $srcdir/testdata/grepoutput testtrygrep