mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
ctest_memcheck: do not add detect_leaks=1 to ASAN_OPTIONS
This commit is contained in:
parent
0a2e588585
commit
e537bd9112
@ -4,6 +4,11 @@ ctest_memcheck-leak_sanitizer
|
||||
* The :command:`ctest_memcheck` command learned to support ``LeakSanitizer``
|
||||
independently from ``AddressSanitizer``.
|
||||
|
||||
* The :command:`ctest_memcheck` command no longer automatically adds
|
||||
``leak_check=1`` to the options used by ``AddressSanitizer``. The default
|
||||
behavior of ``AddressSanitizer`` is to run `LeakSanitizer` to check leaks
|
||||
unless ``leak_check=0``.
|
||||
|
||||
* The :command:`ctest_memcheck` command learned to read the location of
|
||||
suppressions files for sanitizers from the
|
||||
:variable:`CTEST_MEMORYCHECK_SUPPRESSIONS_FILE` variable.
|
||||
|
@ -618,7 +618,6 @@ bool cmCTestMemCheckHandler::InitializeMemoryChecking()
|
||||
if (this->MemoryTesterStyle ==
|
||||
cmCTestMemCheckHandler::ADDRESS_SANITIZER) {
|
||||
envVar = "ASAN_OPTIONS";
|
||||
extraOptions += ":detect_leaks=1";
|
||||
} else if (this->MemoryTesterStyle ==
|
||||
cmCTestMemCheckHandler::LEAK_SANITIZER) {
|
||||
envVar = "LSAN_OPTIONS";
|
||||
|
Loading…
Reference in New Issue
Block a user