From e55116a5eb5071b56bb9c88a620ff65bf3081d4b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 26 Feb 2012 11:22:32 +0100 Subject: [PATCH] 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. --- tests/defs | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2