]> Savannah Git Hosting - gnulib.git/commitdiff
perror tests: Tweak for z/OS.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Feb 2017 23:57:33 +0000 (00:57 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Feb 2017 23:57:33 +0000 (00:57 +0100)
Reported by Daniel Richard G. <skunk@iskunk.org>.
* tests/test-perror.sh: Don't fail z/OS style perror output.

ChangeLog
tests/test-perror.sh

index 8e97e7f1c91e3d533750668eea2342de12cfa510..1622f4291a52b6c07d263714b6202cca84125d90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-02-28  Bruno Haible  <bruno@clisp.org>
+
+       perror tests: Tweak for z/OS.
+       Reported by Daniel Richard G. <skunk@iskunk.org>.
+       * tests/test-perror.sh: Don't fail z/OS style perror output.
+
 2017-02-26  Bruno Haible  <bruno@clisp.org>
 
        nproc: Refactor large function.
index 7274d3223f15e72fa1ee3c6b4d637197a46b91f1..40a3034b28b52b146deffa54df2820007db9ae8e 100755 (executable)
@@ -2,9 +2,11 @@
 : ${srcdir=.}
 . "$srcdir/init.sh"; path_prepend_ .
 
-# Test NULL prefix. Result should not contain a number.
+# Test NULL prefix. Result should not contain a number, except in lines that
+# start with 'EDC' (IBM z/OS libc produces an error identifier before the
+# error message).
 test-perror 2>&1 >/dev/null | LC_ALL=C tr -d '\r' > t-perror.tmp
-grep '[0-9]' t-perror.tmp > /dev/null \
+grep -v '^EDC' t-perror.tmp | grep '[0-9]' > /dev/null \
   && fail_ "result should not contain a number"
 
 # Test empty prefix. Result should be the same.