diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-05-10 11:40:06 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-05-10 11:40:06 +0000 |
commit | 038a52f90a30d93c5688a882620bfd392f386076 (patch) | |
tree | c66428c92f380efeccdcdde87f10b1854ca4dc42 /RunGrepTest | |
parent | 5d21bb98d579cb16675f5c2be3ee77f23b74f43e (diff) | |
download | pcre-038a52f90a30d93c5688a882620bfd392f386076.tar.gz |
Fix pcregrep so that it can find empty lines.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1324 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-x | RunGrepTest | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/RunGrepTest b/RunGrepTest index 94fd808..daaf8af 100755 --- a/RunGrepTest +++ b/RunGrepTest @@ -486,6 +486,22 @@ echo "---------------------------- Test 101 ------------------------------" >>te (cd $srcdir; $valgrind $pcregrep -o3 -Ho2 -o12 --only-matching=1 -o3 --colour=always --om-separator='|' '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtry echo "RC=$?" >>testtry +echo "---------------------------- Test 102 -----------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -n "^$" ./testdata/grepinput3) >>testtry 2>&1 +echo "RC=$?" >>testtry + +echo "---------------------------- Test 103 -----------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep --only-matching "^$" ./testdata/grepinput3) >>testtry 2>&1 +echo "RC=$?" >>testtry + +echo "---------------------------- Test 104 -----------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -n --only-matching "^$" ./testdata/grepinput3) >>testtry 2>&1 +echo "RC=$?" >>testtry + +echo "---------------------------- Test 105 -----------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep --colour=always "ipsum|" ./testdata/grepinput3) >>testtry 2>&1 +echo "RC=$?" >>testtry + # Now compare the results. |