]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
coverage: Use atomic profiling updates to avoid issues with multi-threaded test cases
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 15:03:53 +0000 (16:03 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 17:53:39 +0000 (18:53 +0100)
configure.ac

index 113172a8a07d150579a1f4b11168290f1d7e512a..37c47bccb22c594fb56aa63d520bb628e07e36ef 100644 (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)