]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: don't trust the exit status of "make -k" for non-GNU makes
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jul 2012 11:31:54 +0000 (13:31 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jul 2012 11:33:36 +0000 (13:33 +0200)
* 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 <stefano.lattarini@gmail.com>
t/parallel-tests-recheck-pr11791.sh

index 2cb18cf7176d74221b63045d2a81eabb920e86ea..2d2fc5a715f1591a59c66031dd66dc77d6ece388 100755 (executable)
@@ -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.