openbsd-ports/devel/pcre2/patches/patch-RunGrepTest
jca 6c6ad2890b Update to pcre2-10.33
Minor bump because of symbol additions in all libraries.
From Nam Nguyen (maintainer)
2019-05-01 21:47:27 +00:00

20 lines
718 B
Plaintext

$OpenBSD: patch-RunGrepTest,v 1.2 2019/05/01 21:47:27 jca Exp $
Our sed(1) doesn't cope with NUL bytes and \x00-style notation.
Index: RunGrepTest
--- RunGrepTest.orig
+++ RunGrepTest
@@ -723,9 +723,9 @@ $valgrind $vjs $pcre2grep -n --newline=anycrlf "^(abc|
printf '%c--------------------------- Test N7 ------------------------------\r\n' - >>testtrygrep
uname=`uname`
case $uname in
- Linux)
+ OpenBSD)
printf 'abc\0def' >testNinputgrep
- $valgrind $vjs $pcre2grep -na --newline=nul "^(abc|def)" testNinputgrep | sed 's/\x00/ZERO/' >>testtrygrep
+ $valgrind $vjs $pcre2grep -na --newline=nul "^(abc|def)" testNinputgrep | gsed 's/\x00/ZERO/' >>testtrygrep
echo "" >>testtrygrep
;;
*)