From: Joel Rosdahl Date: Mon, 17 Jan 2022 17:47:24 +0000 (+0100) Subject: test: Verify -fsyntax-only handling without -c X-Git-Tag: v4.6~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c146092cdb0c9ad3483acc88898874ef6729124c;p=thirdparty%2Fccache.git test: Verify -fsyntax-only handling without -c --- diff --git a/test/suites/base.bash b/test/suites/base.bash index 234b67805..651225914 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1102,16 +1102,17 @@ EOF echo '#warning This triggers a compiler warning' >stderr.c - $COMPILER -Wall -c stderr.c -fsyntax-only 2>reference_stderr.txt + $COMPILER -Wall stderr.c -fsyntax-only 2>reference_stderr.txt expect_contains reference_stderr.txt "This triggers a compiler warning" - $CCACHE_COMPILE -Wall -c stderr.c -fsyntax-only 2>stderr.txt + $CCACHE_COMPILE -Wall stderr.c -fsyntax-only 2>stderr.txt expect_stat preprocessed_cache_hit 0 expect_stat cache_miss 1 expect_stat files_in_cache 1 expect_equal_content reference_stderr.txt stderr.txt + # Intentionally compiling with "-c" here but not above. $CCACHE_COMPILE -Wall -c stderr.c -fsyntax-only 2>stderr.txt expect_stat preprocessed_cache_hit 1 expect_stat cache_miss 1