tests: fix another spurious with FreeBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 19 May 2013 10:22:22 +0000 (12:22 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 19 May 2013 10:22:58 +0000 (12:22 +0200)
* t/parallel-tests-recheck-pr11791.sh: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/parallel-tests-recheck-pr11791.sh

index ac3a389..1bd535d 100644 (file)
@@ -45,7 +45,7 @@ count_test_results total=1 pass=0 fail=1 xpass=0 xfail=0 skip=0 error=0
 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
+if using_gmake && test $st -eq 0; then exit 1; else :; 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.
@@ -64,7 +64,7 @@ test -f foo.trs
 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
+if using_gmake && test $st -eq 0; then exit 1; else :; fi
 # We don't get a change to run the testsuite.
 $EGREP '(X?PASS|X?FAIL|SKIP|ERROR):' stdout && exit 1
 test -f foo.log