1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

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.
This commit is contained in:
Bruno Haible
2017-03-01 00:57:33 +01:00
parent a59926b805
commit c1035211b3
2 changed files with 10 additions and 2 deletions
+6
View File
@@ -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.
+4 -2
View File
@@ -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.