From 18407c4bc57c234e536d9a7972930f30a6aee46c Mon Sep 17 00:00:00 2001 From: David Fairbrother <DavidFair@users.noreply.github.com> Date: Mon, 23 Mar 2020 11:22:18 +0000 Subject: [PATCH] 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. --- buildconfig/CMake/FindCxxTest.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildconfig/CMake/FindCxxTest.cmake b/buildconfig/CMake/FindCxxTest.cmake index 5526d094a26..301130c75e9 100644 --- a/buildconfig/CMake/FindCxxTest.cmake +++ b/buildconfig/CMake/FindCxxTest.cmake @@ -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} ) -- GitLab