From: Joel Rosdahl Date: Sun, 13 Mar 2022 12:34:37 +0000 (+0100) Subject: test: Don’t require C++-capable compiler for the test suite X-Git-Tag: v4.6.1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ac8dc345e758a3d31859e01b26a0104c0707e6;p=thirdparty%2Fccache.git test: Don’t require C++-capable compiler for the test suite --- diff --git a/test/suites/base.bash b/test/suites/base.bash index 08f17e475..050d8bd07 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1452,10 +1452,11 @@ EOF a.incbin(); } EOF - $CCACHE_COMPILE -x c++ -c incbin.cpp - expect_stat preprocessed_cache_hit 0 - expect_stat cache_miss 1 - expect_stat unsupported_code_directive 2 + if $CCACHE_COMPILE -x c++ -c incbin.cpp 2>/dev/null; then + expect_stat preprocessed_cache_hit 0 + expect_stat cache_miss 1 + expect_stat unsupported_code_directive 2 + fi fi # -------------------------------------------------------------------------