build(Linux): use compiler-selected libgcov for coverage (#5597)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-09-02 10:12:57 -04:00
1 parent 3841ac593c
commit f02f1aebbc
2 files changed
+15 -32

No files matched your search

+3 -1
View File
@@ -191,7 +191,9 @@ check() {
export CXX="g++${_gcc_env_suffix}"
cd "${srcdir}/build/tests"
./test_sunshine --gtest_color=yes --gtest_output=xml:test_results.xml
# Do not silently upload misleading coverage if the gcov runtime cannot
# write profile data, such as when its version differs from the compiler.
GCOV_EXIT_AT_ERROR=1 ./test_sunshine --gtest_color=yes --gtest_output=xml:test_results.xml
# Generate coverage report
# Run gcovr from the build directory (where all .gcda/.gcno files are)