From 71f4c3dc4ecee41fcce9f68c358299a2f7e0a87a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 10 Jan 2025 16:03:53 +0100 Subject: [PATCH] coverage: Use atomic profiling updates to avoid issues with multi-threaded test cases --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 113172a8a..37c47bccb 100644 --- a/configure.ac +++ b/configure.ac @@ -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)