]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Don’t require C++-capable compiler for the test suite
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Mar 2022 12:34:37 +0000 (13:34 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Mar 2022 12:34:37 +0000 (13:34 +0100)
test/suites/base.bash

index 08f17e475218bbd72fd4c39ccb8aae7e3bdb20c8..050d8bd07f1e2037ccb99a869cba825d1002bca3 100644 (file)
@@ -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
 
     # -------------------------------------------------------------------------