Catching GMP test failures

Matt Burgess matthew at linuxfromscratch.org
Thu Feb 9 12:16:26 PST 2012


Hi,

Currently, jhalfs copies the exact command for invoking GMP's tests:

make check 2>&1 | tee gmp-check-log >> $TEST_LOG 2>&1

The problem with this is that the exit status of 'make check' is lost;
the exit status of 'tee' is what will cause the script to fail or not,
and that's pretty much never going to fail to run.

The attached patch changes the command to:

make check 2>&1 | tee gmp-check-log >> $TEST_LOG 2>&1 && exit
$PIPESTATUS

I'm doing a full build now to test it, but it at least generates what I
think is the correct command line.

Regards,

Matt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-testsuite.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20120209/36a4260a/attachment.bin>


More information about the alfs-discuss mailing list