X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fparallel-tests-fork-bomb.sh;h=215294b7b95ffc740c9500256c678c15daf45d57;hb=fe05207b40350b189727351c22871ae5075b186f;hp=ceeeabee63d5fa3eac2d9374d9619609300713d5;hpb=d89da9c295ac67ce985270da16f45c4abd1a089a;p=platform%2Fupstream%2Fautomake.git diff --git a/t/parallel-tests-fork-bomb.sh b/t/parallel-tests-fork-bomb.sh index ceeeabe..215294b 100755 --- a/t/parallel-tests-fork-bomb.sh +++ b/t/parallel-tests-fork-bomb.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,8 +18,7 @@ # - If $(TEST_SUITE_LOG) is in $(TEST_LOGS), we get a diagnosed # error, not a make hang or a system freeze. -am_parallel_tests=yes -. ./defs || Exit 1 +. test-init.sh # We don't want localized error messages from make, since we'll have # to grep them. See automake bug#11452. @@ -103,9 +102,9 @@ do_check () log=$1; shift env "$@" $MAKE -e check >output 2>&1 || st=$? cat output - $FGREP '::OOPS::' output && Exit 1 # Possible infinite recursion. + $FGREP '::OOPS::' output && exit 1 # Possible infinite recursion. # Check that at least we don't create a botched global log file. - test ! -f "$log" + test ! -e "$log" if using_gmake; then grep "[Cc]ircular.*dependency" output | $FGREP "$log" test $st -gt 0 @@ -129,7 +128,7 @@ do_check () err_seen=yes break done - test $err_seen = yes || Exit 1 + test $err_seen = yes || exit 1 fi }