From: Stefano Lattarini Date: Sun, 26 Feb 2012 10:22:32 +0000 (+0100) Subject: tests: avoid many spurious failures for shells with busted 'set -e' X-Git-Tag: v1.11b~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e55116a5eb5071b56bb9c88a620ff65bf3081d4b;p=thirdparty%2Fautomake.git tests: avoid many spurious failures for shells with busted 'set -e' Some versions of the BSD Korn shell wrongly bail out when the 'errexit' shell flag is active and the left-hand command in a "&&" list fails and that list is the *last* command of an entry in a "case" statement. * tests/defs (gcc, g++, gcj): Work around that. --- diff --git a/tests/defs b/tests/defs index e92522252..5b7ff5bd9 100644 --- a/tests/defs +++ b/tests/defs @@ -797,14 +797,17 @@ do gcj) GCJ=$GNU_GCJ GCJFLAGS=$GNU_GCJFLAGS; export GCJ GCJFLAGS test "$GCJ" = false && skip_all_ "GNU Java compiler unavailable" + : For shells with busted 'set -e'. ;; gcc) CC=$GNU_CC CFLAGS=$GNU_CFLAGS; export CC CFLAGS CPPFLAGS test "$CC" = false && skip_all_ "GNU C compiler unavailable" + : For shells with busted 'set -e'. ;; g++) CXX=$GNU_CXX CXXFLAGS=$GNU_CXXFLAGS; export CXX CXXFLAGS CPPFLAGS test "$CXX" = false && skip_all_ "GNU C++ compiler unavailable" + : For shells with busted 'set -e'. ;; gfortran) FC=$GNU_FC FCFLAGS=$GNU_FCFLAGS; export FC FCFLAGS