summaryrefslogtreecommitdiff
path: root/RunGrepTest
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-10-30 18:37:47 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-10-30 18:37:47 +0000
commit70ccf43822dbf6bc1c6fa18746192fb9c6ebdfed (patch)
treebf784596a3b5ad234b7b3462288c8caa608ca573 /RunGrepTest
parent3dae399f6999cce832976c85ae1de6188e9d2c58 (diff)
downloadpcre-70ccf43822dbf6bc1c6fa18746192fb9c6ebdfed.tar.gz
Added --match-limit and --recursion-limit to pcregrep; tidied some error
messages. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@561 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-xRunGrepTest6
1 files changed, 6 insertions, 0 deletions
diff --git a/RunGrepTest b/RunGrepTest
index 13119d0..74f24b5 100755
--- a/RunGrepTest
+++ b/RunGrepTest
@@ -245,6 +245,12 @@ echo "---------------------------- Test 59 -----------------------------" >>test
echo "---------------------------- Test 60 -----------------------------" >>testtry
(cd $srcdir; $valgrind $pcregrep --regexp PATTERN ./testdata/grepinput) >>testtry
+echo "---------------------------- Test 61 -----------------------------" >>testtry
+(cd $srcdir; $valgrind $pcregrep --match-limit=1000 -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtry 2>&1
+
+echo "---------------------------- Test 62 -----------------------------" >>testtry
+(cd $srcdir; $valgrind $pcregrep --recursion-limit=1000 -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtry 2>&1
+
# Now compare the results.
$cf $srcdir/testdata/grepoutput testtry