From c1035211b3ebb1ec74fbd58550697c0e2405c903 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 1 Mar 2017 00:57:33 +0100 Subject: [PATCH] perror tests: Tweak for z/OS. Reported by Daniel Richard G. . * tests/test-perror.sh: Don't fail z/OS style perror output. --- ChangeLog | 6 ++++++ tests/test-perror.sh | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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. -- 2.39.5