I am currently testing the dynamic analysis with UndefinedBehaviorSanitizer and AddressSanitizer.
It works well separately and defects are correctly reported on our dashboard.
However I am wondering if there is a way to combine both analysis to avoid running twice my project test database.
Setup both analyzers flags in your build (e.g. -fsanitize=address,undefined) instead of only one.
You’ll only be able to set CTEST_MEMORYCHECK_TYPE to one of them though. That’s the only thing I’m not totally sure it works correctly, if cmake/ctest/cdash does things specifically based on the check type you might only get one set of results.
Yeah, from the MemoryChecker code it seems that both the output file and it’s regex parsing are specific to the configured check type, so for now we can only get one sanitizer report at a time