CTest: Interaction of ctest_test and ctest_memcheck with Clang Sanitizers
The MemoryCheckType variable model doesn't work that well with the XXXSanitizers
I can build my binaries once with "-fsanitize=address -fsanitize=undefined". I would want CTest/CDash to tell me about the problems both AddressSanitizer and UndefinedBehaviorSanitizer find. Unfortunately there doesn't seem to be a way to do this. If I do
set(CTEST_MEMORYCHECK_TYPE "AddressSanitizer")
ctest_memcheck()
set(CTEST_MEMORYCHECK_TYPE "UndefinedBehaviorSanitizer")
ctest_memcheck()
The results from UndefinedBehaviorSanitizer overwrite the ones from AddressSanitizer.
Edited by Brad King