diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-11-23 17:41:01 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-11-24 09:06:51 +0000 |
commit | a036bd1746a8be9d8d9f15d70f8d0258d1a4fc46 (patch) | |
tree | 1b00201248a4e15ab7e83b69907b28bc83dee5fc /src | |
parent | 5f330d9fed481300a21301577fff573cb88a61ac (diff) |
Disable ASAN leaks check for cmake tests
CMake tests have own workflow and way they run. Most of binaries
produced by these tests are either no-op or check if build was
successful. It doesn't make much sense to check these binaries for
memory leaks, so disabling ASAN leak check.
Fixes: QTBUG-108817
Change-Id: I95984e1049d6bfd691ff854e15bdf98c71c921db
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/Qt6CTestMacros.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/Qt6CTestMacros.cmake b/src/corelib/Qt6CTestMacros.cmake index 9406d02223..64b1962d62 100644 --- a/src/corelib/Qt6CTestMacros.cmake +++ b/src/corelib/Qt6CTestMacros.cmake @@ -439,8 +439,10 @@ macro(_qt_internal_test_expect_pass _dir) add_test(${testname} ${CMAKE_CTEST_COMMAND} ${ctest_command_args}) if(_ARGS_SIMULATE_IN_SOURCE) set_tests_properties(${testname} PROPERTIES - FIXTURES_REQUIRED "${testname}SIMULATE_IN_SOURCE_FIXTURE") + FIXTURES_REQUIRED "${testname}SIMULATE_IN_SOURCE_FIXTURE" + ) endif() + set_tests_properties(${testname} PROPERTIES ENVIRONMENT "ASAN_OPTIONS=detect_leaks=0") if(_ARGS_BINARY) set(run_env_args "") |