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>
This commit is contained in:
parent
5f330d9fed
commit
a036bd1746
@ -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 "")
|
||||
|
Loading…
Reference in New Issue
Block a user