summaryrefslogtreecommitdiff
path: root/t/list-of-tests.mk
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-01-08 20:19:04 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-01-08 20:25:30 +0100
commit744cd575c103166ed2b9e8ea1e8013f3e3e25bfe (patch)
tree853dc8f94e5e9dc69b7a81bc46898bf104b5a5f4 /t/list-of-tests.mk
parent285d7b14cc55c047c432e3ed7322cb1a4f96aab2 (diff)
downloadautomake-744cd575c103166ed2b9e8ea1e8013f3e3e25bfe.tar.gz
coverage: compile rules used "-c -o" also with losing compilers
If the 'subdir-objects' option is used, Automake-generated rules for C compilation pass both the "-c" and "-o" options to the C compiler, *unconditionally*. There are some compilers that choke on such an usage, but the AM_PROG_CC_C_O macro takes care of them (it does so by redefining $CC to use the Automake-provided 'compile' wrapper script automatically, if a losing compiler is detected at configure runtime). Unfortunately, in case the 'subdir-objects' option is specified in a Makefile.am, but all the source files resided anyway in the top-level directory (relative to the Makefile.am), Automake do *not* complain if AM_PROG_CC_C_O wasn't invoked in 'configure.ac' -- all the while still passing "-c -o" to the compiler invocations. This could cause compilation failures with losing compilers if the user forget to call AM_PROG_CC_C_O in 'configure.ac' (and Automake would not warn him of the issue). Expose this bug in the testsuite. Issue identified by Nick Bowler in the discussion on automake bug#13378: <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13378#35> <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13378#44> * t/ccnoco4.sh: New test. * t/list-of-tests.mk (XFAIL_TESTS, handwritten_TESTS): List it. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/list-of-tests.mk')
-rw-r--r--t/list-of-tests.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk
index f3e996325..aef3730e2 100644
--- a/t/list-of-tests.mk
+++ b/t/list-of-tests.mk
@@ -30,6 +30,7 @@ t/pm/Version3.pl
XFAIL_TESTS = \
t/all.sh \
+t/ccnoco4.sh \
t/cond17.sh \
t/gcj6.sh \
t/override-conditional-2.sh \
@@ -209,6 +210,7 @@ t/canon-name.sh \
t/ccnoco.sh \
t/ccnoco2.sh \
t/ccnoco3.sh \
+t/ccnoco4.sh \
t/check.sh \
t/check2.sh \
t/check4.sh \