ctest_memcheck: support LeakSanitizer independently from AddressSanitizer
-
Teaches the
ctest_memcheck
command to support LeakSanitizer independently from AddressSanitizer. -
Adjusts the
ctest_memcheck
command no longer automatically addsleak_check=1
to the options used by AddressSanitizer. The default behavior of AddressSanitizer is to run LeakSanitizer to check leaks unlessleak_check=0
, so the overall behavior is the same as before, but this allows AddressSanitizer to be run without LeakSanitizer if desired. -
Teaches the
ctest_memcheck
command to read the location of suppressions files for sanitizers from theCTEST_MEMORYCHECK_SUPPRESSIONS_FILE
variable. -
Fixes the
ctest_memcheck
command to correctly append extra sanitizer options read from theCTEST_MEMORYCHECK_SANITIZER_OPTIONS
variable to the environment variables used internally by the sanitizers using a colon instead of a space.