summaryrefslogtreecommitdiff
path: root/t/parallel-tests-fork-bomb.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-05-22 23:29:47 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-05-22 23:59:56 +0200
commite2a000cc181b4a66564b8378cad6843d1938f80a (patch)
tree4072c641c3cb1c1b07fcee0515c886c661763fc1 /t/parallel-tests-fork-bomb.sh
parent20963917dd4c0591f2983bd6a94426361bd53fa5 (diff)
downloadautomake-e2a000cc181b4a66564b8378cad6843d1938f80a.tar.gz
tests: avoid use of redirected 'run_make' invocations
Instead, properly use the -E, -O, or -M options of run_make. The occurrences of the 'run_make' invocations using output redirection has been found by the recently-introduced maintainer check 'sc_tests_no_run_make_redirect'. * t/ax/tap-summary-aux.sh: Adjust. * t/ax/testsuite-summary-checks.sh: Likewise. * Several other tests: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/parallel-tests-fork-bomb.sh')
-rw-r--r--t/parallel-tests-fork-bomb.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/parallel-tests-fork-bomb.sh b/t/parallel-tests-fork-bomb.sh
index e63c0d760..1361bbd19 100644
--- a/t/parallel-tests-fork-bomb.sh
+++ b/t/parallel-tests-fork-bomb.sh
@@ -98,16 +98,14 @@ $AUTOMAKE -a -Wno-portability
do_check ()
{
- st=0
log=$1; shift
- run_make "$@" check >output 2>&1 || st=$?
- cat output
+ run_make -M -e IGNORE -- "$@" check
$FGREP '::OOPS::' output && exit 1 # Possible infinite recursion.
# Check that at least we don't create a botched global log file.
test ! -e "$log"
if using_gmake; then
grep "[Cc]ircular.*dependency" output | $FGREP "$log"
- test $st -gt 0
+ test $am_make_rc_got -gt 0
else
# Look for possible error messages about circular dependencies from
# either make or our own recipes. At least one such a message must