From: Bruno Haible Date: Tue, 28 Feb 2017 23:57:33 +0000 (+0100) Subject: perror tests: Tweak for z/OS. X-Git-Tag: v1.0~6345 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c1035211b3ebb1ec74fbd58550697c0e2405c903;p=gnulib.git perror tests: Tweak for z/OS. Reported by Daniel Richard G. . * tests/test-perror.sh: Don't fail z/OS style perror output. --- diff --git a/ChangeLog b/ChangeLog index 8e97e7f1c9..1622f4291a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-02-28 Bruno Haible + + perror tests: Tweak for z/OS. + Reported by Daniel Richard G. . + * tests/test-perror.sh: Don't fail z/OS style perror output. + 2017-02-26 Bruno Haible nproc: Refactor large function. diff --git a/tests/test-perror.sh b/tests/test-perror.sh index 7274d3223f..40a3034b28 100755 --- a/tests/test-perror.sh +++ b/tests/test-perror.sh @@ -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.