From: Stefano Lattarini Date: Sun, 1 Jul 2012 11:31:54 +0000 (+0200) Subject: tests: don't trust the exit status of "make -k" for non-GNU makes X-Git-Tag: v1.12.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=337110487a5a1868cad767dd9f09c49d178c6f67;p=thirdparty%2Fautomake.git tests: don't trust the exit status of "make -k" for non-GNU makes * t/parallel-tests-recheck-pr11791.sh: Here. At least some versions of FreeBSD make botch it up, returning success when failure should be returned. Signed-off-by: Stefano Lattarini --- diff --git a/t/parallel-tests-recheck-pr11791.sh b/t/parallel-tests-recheck-pr11791.sh index 2cb18cf71..2d2fc5a71 100755 --- a/t/parallel-tests-recheck-pr11791.sh +++ b/t/parallel-tests-recheck-pr11791.sh @@ -42,8 +42,10 @@ $MAKE check >stdout && { cat stdout; exit 1; } cat stdout count_test_results total=1 pass=0 fail=1 xpass=0 xfail=0 skip=0 error=0 -$MAKE -k recheck >stdout && { cat stdout; exit 1; } +st=0; $MAKE -k recheck >stdout || st=$? cat stdout +# Don't trust the exit status of "make -k" for non-GNU makes. +if using_gmake && test $st -eq 0; then exit 1; fi count_test_results total=1 pass=0 fail=1 xpass=0 xfail=0 skip=0 error=0 # Introduce an error in foo.c, that should cause a compilation failure.