coverage: Use atomic profiling updates to avoid issues with multi-threaded test cases

This commit is contained in:
Tobias Brunner
2025-01-10 18:53:39 +01:00
parent 24c20803a3
commit 71f4c3dc4e
+1 -1
View File
@@ -1361,7 +1361,7 @@ if test x$coverage = xtrue; then
AC_MSG_ERROR([genhtml not found])
fi
COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage -fprofile-update=atomic"
COVERAGE_LDFLAGS="-fprofile-arcs"
AC_SUBST(COVERAGE_CFLAGS)
AC_SUBST(COVERAGE_LDFLAGS)