]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] vala tests: avoid spurious failure with Sun C/C++ compilers
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Jan 2015 10:35:48 +0000 (11:35 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Jan 2015 16:53:22 +0000 (17:53 +0100)
* t/vala-mix2.sh: Here, by forcing the use of the GNU C/C++ compilers.
If we don't, our dependency-tracking code forces 'make' to try to rebuild
spurious binaries or object files when the Sun C compiler is in use, with
reasons like:
  '/opt/SUNWspro/prod/include/CC/Cstd/./istream.cc' is newer \
      than target '/opt/SUNWspro/prod/include/CC/Cstd/./istream'
Go figure.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/vala-mix2.sh

index 0725100fe8fb5e5a6cdbf803798a91a8e5240722..5ad1b5d4684139ab34457304672b9afca1a28bad 100644 (file)
@@ -17,7 +17,7 @@
 # Vala sources, C and C++ sources and C and C++ headers in the same
 # program.  Functional test.  See automake bug#10894.
 
-required='valac cc c++ pkg-config'
+required='valac gcc g++ pkg-config'
 . test-init.sh
 
 cat >> configure.ac <<'END'
@@ -90,8 +90,8 @@ have_generated_files ()
 have_generated_files
 
 # Remake rules are not uselessly triggered.
-$MAKE -q
 $MAKE -n | $FGREP vala.stamp && exit 1
+$MAKE -q
 
 # But are triggered when they should.
 for file in zardoz.vala foo.h bar.c baz.c zen.hh master.cxx; do