diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-15 15:48:08 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-24 17:35:48 +0200 |
commit | b2b6269fca6f7bb7adac2d09c02adf0c6b701d48 (patch) | |
tree | 862ba417a38838ad28acb999fe8ddeb045c4696f /t/ax/am-test-lib.sh | |
parent | e90126cf20ab1bd848631fca5d4bc32433ca52e4 (diff) | |
download | automake-b2b6269fca6f7bb7adac2d09c02adf0c6b701d48.tar.gz |
tests: some tests make no sense if "$CC -c -o" doesn't work
So just skip them, to avoid spurious failures when running
"make check-no-cc-c-o".
* t/ax/am-test-lib.sh (require_tool): New requirement '-c-o'.
* t/subobj10.sh ($required): Add it.
* gen-testsuite-part (%depmodes): Adjust so that tests that
use 'makedepend' will be skipped if the compiler is being
forced not to grasp "-c -o".
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/ax/am-test-lib.sh')
-rw-r--r-- | t/ax/am-test-lib.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/ax/am-test-lib.sh b/t/ax/am-test-lib.sh index 53dd27ee5..07ef9c9f8 100644 --- a/t/ax/am-test-lib.sh +++ b/t/ax/am-test-lib.sh @@ -765,6 +765,11 @@ require_tool () case $1 in cc|c++|fortran|fortran77) require_compiler_ $1;; + -c-o) + if test x"$AM_TESTSUITE_SIMULATING_NO_CC_C_O" = x"yes"; then + skip_all_ "need a C compiler that grasps -c and -o together" + fi + ;; xsi-lib-shell) if test x"$am_test_prefer_config_shell" = x"yes"; then require_xsi "$SHELL" |