Revision: 855
http://www.exim.org/viewvc/pcre2?view=rev&revision=855
Author: ph10
Date: 2017-08-18 16:21:08 +0100 (Fri, 18 Aug 2017)
Log Message:
-----------
Fudge binary zero pcre2grep test for Darwin, similar to SunOS.
Modified Paths:
--------------
code/trunk/RunGrepTest
Modified: code/trunk/RunGrepTest
===================================================================
--- code/trunk/RunGrepTest 2017-08-15 11:03:38 UTC (rev 854)
+++ code/trunk/RunGrepTest 2017-08-18 15:21:08 UTC (rev 855)
@@ -678,10 +678,11 @@
# It seems inpossible to handle NUL characters easily in Solaris (aka SunOS).
# The version of sed explicitly doesn't like them. For the moment, we just
# don't run this test under SunOS. Fudge the output so that the comparison
-# works.
+# works. A similar problem has also been reported for MacOS (Darwin).
printf "%c--------------------------- Test N7 ------------------------------\r\n" - >>testtrygrep
-if [ `uname` != "SunOS" ] ; then
+uname=`uname`
+if [ "$uname" != "SunOS" -a "$uname" != "Darwin" ] ; then
printf "abc\0def" >testNinputgrep
$valgrind $vjs $pcre2grep -na --newline=nul "^(abc|def)" testNinputgrep | sed 's/\x00/ZERO/' >>testtrygrep
echo "" >>testtrygrep