bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

z/OS test failures due to quirky error handling


From: Daniel Richard G.
Subject: z/OS test failures due to quirky error handling
Date: Mon, 20 Feb 2017 17:37:27 -0500

Two tests in the Gnulib test suite are currently failing due to z/OS
idiosyncrasies relating to error messages.

The first one is test-perror.sh:

    $ srcdir=/path/to/testdir/gltests /path/to/testdir/gltests/test-perror.sh 
    test-perror.sh: failed test: result should not contain a number

The content of the t-perror.tmp file when this failure occurs is
as follows:

    EDC5111I Permission denied.
    EDC8127I Connection timed out.
    EDC5149I Value Overflow Error.

I don't understand why the script checks for numbers in the output, but
the check may need tweaking on this platform.

The second test is test-sigpipe.sh:

    $ /path/to/testdir/gltests/test-sigpipe.sh
    CEE5213S The signal SIGPIPE was received.
    $ echo $?
    1

The default SIGPIPE signal handler appears to write to stderr, and this
is separate from the "Broken pipe" message printed to the terminal:

    $ ./test-sigpipe A | head -1
    y
    CEE5213S The signal SIGPIPE was received.
    Broken pipe

This test could probably use a tweak as well.


--Daniel


-- 
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]