From c032264618175c4ea7008b9033e26e2d4a8c37c2 Mon Sep 17 00:00:00 2001 From: ph10 Date: Fri, 10 Feb 2017 17:39:29 +0000 Subject: 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 --- RunGrepTest | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'RunGrepTest') 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 -- cgit v1.2.1