* tests/silent-many-gcc.test:  Also force "fast" gcc depmode
for C++ compilations.  Add sanity checks verifying that the
cache variables we force are really used by configure.  Fix
typo in comments.
---
 ChangeLog                  |    8 ++++++++
 tests/silent-many-gcc.test |   11 +++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6021006..6ab07c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-04  Stefano Lattarini  <[email protected]>
 
+       tests: 'silent-many-gcc.test' improved and made more robust
+       * tests/silent-many-gcc.test:  Also force "fast" gcc depmode
+       for C++ compilations.  Add sanity checks verifying that the
+       cache variables we force are really used by configure.  Fix
+       typo in comments.
+
+2011-05-04  Stefano Lattarini  <[email protected]>
+
        tests: drop useless requirements of 'g++'
        * tests/lflags2.test ($required): Remove 'g++', as any working
        C++ compiler should be enough, and ./configure will cause the
diff --git a/tests/silent-many-gcc.test b/tests/silent-many-gcc.test
index 62dafa1..79fa4a6 100755
--- a/tests/silent-many-gcc.test
+++ b/tests/silent-many-gcc.test
@@ -180,11 +180,18 @@ $ACLOCAL
 $AUTOMAKE --add-missing
 $AUTOCONF
 
+# Sanity check: make sure the cache variables we force are really
+# used by configure.
+$FGREP am_cv_CC_dependencies_compiler_type configure
+$FGREP am_cv_CXX_dependencies_compiler_type configure
+
 # Force gcc ("fast") depmode.
+depmodes="am_cv_CC_dependencies_compiler_type=gcc \
+          am_cv_CXX_dependencies_compiler_type=gcc"
 # This apparently useless "for" loop is here to simplify the syncing
-# with sister test `silent-many-gcc.test'.
+# with sister test `silent-many-generic.test'.
 for config_args in \
-  am_cv_CC_dependencies_compiler_type=gcc
+  "$depmodes"
 do
 
   ./configure $config_args --enable-silent-rules
-- 
1.7.2.3


Reply via email to