aboutsummaryrefslogtreecommitdiffstats
path: root/main/grep/fix-tests.patch
blob: cb29457147f22b951afd77e42c4d20e6724642d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -upr grep-3.1.orig/tests/pcre-jitstack grep-3.1/tests/pcre-jitstack
--- grep-3.1.orig/tests/pcre-jitstack	2017-11-29 01:48:08.772121987 +0100
+++ grep-3.1/tests/pcre-jitstack	2017-11-29 01:49:37.763570125 +0100
@@ -25,7 +25,7 @@ foo=$( (echo foo | gzip | gzip -d) 2>/de
 
 fail=0
 
-b64_decode >pcrejit.txt.gz <<'EOF' || framework_failure_
+cat <<EOF
 H4sIAAAAAAACA+2bUU4DMQxE/7mMz5T7XwKE+IBKVLue58yk0B9EtX6xJxN7t4VaH69a6+tHrW+/
 r4e3n75KARWShSOFTtiumE3FPVyo79ATIJ0Ry0No/yXe99UIUqTGKKUzYHFJHJoaCONQDCnDSCDS
 IPAvGCVeXNsZ7lpbWFfdaZtgPos5LeK2C1TBKzD09V3HFlCOsbFT/hNbz4HzJaRjnjdam9FXw/o6
@@ -36,7 +36,9 @@ uSHRnTkzIdZMmZ5kYX/iJFtTwu9cFvr3aDWcUx4p
 dkcKkYUglER2Q4L4gnmOiNGzSBATwGQgwihs5/QffIhyfg4hJvM2r4Rp6L+1ibCCd4jYZ6jCiBlc
 2+y4fl4yTGIwcWXNAUEeXmu8iCMV96DNTnmRNICDk2N5qaXGbsF91OX/0hlcYTjrMfy02p9Xv70D
 mv3RZCFOAAA=
-EOF
+EOF > pcrejit.tmp.txt
+
+b64_decode < pcrejit.tmp.txt > pcrejit.txt.gz || framework_failure_
 
 gzip -d pcrejit.txt || framework_failure_