]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid many spurious failures for shells with busted 'set -e'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 26 Feb 2012 10:22:32 +0000 (11:22 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 26 Feb 2012 10:22:32 +0000 (11:22 +0100)
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

index e925222520a229dac41977841dcaaf7acd919d9f..5b7ff5bd9802f49d935a6d501dd139f6dd2b3e73 100644 (file)
@@ -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