From: Stefano Lattarini Date: Sun, 19 Feb 2012 10:48:08 +0000 (+0100) Subject: tests: don't trust exit status of "make -k" X-Git-Tag: v1.11b~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0194d5e1e31861fa362b77c5e2dab74cd3e7ecea;p=thirdparty%2Fautomake.git tests: don't trust exit status of "make -k" * tests/parallel-tests-extra-programs.test: Unless $MAKE is GNU make, don't trust the exit status of "$MAKE -k". Fixes a spurious failure with OpenBSD 5.0 make and NetBSD 5.1 make. --- diff --git a/tests/parallel-tests-extra-programs.test b/tests/parallel-tests-extra-programs.test index 38021765a..5b1a58e1f 100755 --- a/tests/parallel-tests-extra-programs.test +++ b/tests/parallel-tests-extra-programs.test @@ -121,7 +121,13 @@ $MAKE -k check >stdout 2>stderr || st=$? cat stdout cat stderr >&2 ls -l -test $st -gt 0 || Exit 1 +if using_gmake; then + test $st -gt 0 || Exit 1 +else + # Don't trust exit status of "make -k" for non-GNU make. + $MAKE check && Exit 1 + : For shells with busted 'set -e'. +fi # Files that should have been created, with the expected content. cat bar.c