Skip to content
Snippets Groups Projects
Commit 18407c4b authored by David Fairbrother's avatar David Fairbrother
Browse files

Exit sanitizer build on first error

Exits the sanitizer build on first exit, since Ctest is the handler it
will continue to schedule other tests, but mark the current test as
failed this way.
parent 84c33d8d
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ macro(CXXTEST_ADD_TEST _cxxtest_testname)
if ( USE_SANITIZERS_LOWER STREQUAL "address" )
# See dev docs on sanitizers for details on why verify_asan_link is false
# Trying to quote these options causes the quotation to be forwarded
set(_ASAN_OPTS "suppressions=${SUPPRESSIONS_DIR}/Address.supp:detect_stack_use_after_return=true:halt_on_error=false:verify_asan_link_order=false")
set(_ASAN_OPTS "suppressions=${SUPPRESSIONS_DIR}/Address.supp:detect_stack_use_after_return=true")
set_property( TEST ${_cxxtest_separate_name} APPEND PROPERTY
ENVIRONMENT ASAN_OPTIONS=${_ASAN_OPTS} )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment