Skip to content

ctest_memcheck: support LeakSanitizer independently from AddressSanitizer

Ghost User requested to merge (removed):ctest_memcheck-leak_sanitizer into master
  • Teaches the ctest_memcheck command to support LeakSanitizer independently from AddressSanitizer.

  • Adjusts the 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, 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 the CTEST_MEMORYCHECK_SUPPRESSIONS_FILE variable.

  • Fixes the ctest_memcheck command to correctly append extra sanitizer options read from the CTEST_MEMORYCHECK_SANITIZER_OPTIONS variable to the environment variables used internally by the sanitizers using a colon instead of a space.

Merge request reports