summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-07-02 11:30:50 +0200
committerMarc Mutz <[email protected]>2025-07-02 20:04:27 +0000
commit668d93a3c526862dc0ad00420ed374b94c86dcb4 (patch)
treeb4883629ce773c7b8813e783ecf0f0641663089d
parentdd1c5723382308d5317f402048de07e0854450a6 (diff)
tst_selftest: skip benchlibcallgrind for asan buildsHEADdev
Valgrind and asan are incompatible. Says Valgrind: ==1602116==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. Fix by excluding the test from asan builds. Amends the addition of -sanitize options; didn't look it up, since it was certainly before Qt 6.0. Pick-to: 6.10 6.9 6.9 6.5 Change-Id: I4c9922323c4e9457a6d721ca594652da6a0a55fb Reviewed-by: Alexey Edelev <[email protected]>
-rw-r--r--tests/auto/testlib/selftests/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/CMakeLists.txt b/tests/auto/testlib/selftests/CMakeLists.txt
index bd2d42ec7cb..9d013e6f757 100644
--- a/tests/auto/testlib/selftests/CMakeLists.txt
+++ b/tests/auto/testlib/selftests/CMakeLists.txt
@@ -51,7 +51,6 @@ qt_internal_apply_testlib_coverage_options(tst_selftests)
set(subprograms
assert
badxml
- benchlibcallgrind
benchlibcounting
benchlibeventcounter
benchliboptions
@@ -112,6 +111,14 @@ set(subprograms
watchdog
)
+if(NOT QT_FEATURE_sanitize_address)
+ list(APPEND subprograms
+ # valgrind and asan are incompatible:
+ # "ASan runtime does not come first in initial library list;"
+ benchlibcallgrind
+ )
+endif()
+
if(FEATURE_cxx20)
list(APPEND subprograms
threewaycompare