Skip to content

Commit

Permalink
Enable undefined sanitizer for C++ runtime in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Aug 5, 2024
1 parent 88f1c0b commit bedd5c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ compiler_reset_debug_iterators() # fixes arguments/set_cpp_allocator tests for M

if (SANITIZERS_ENABLED)
compiler_set_address_sanitizer()
compiler_set_undefined_sanitizer()
endif ()

# add test utility library
Expand Down Expand Up @@ -69,9 +70,6 @@ add_subdirectory("${ZSERIO_RELEASE_ROOT}/runtime_libs/cpp" ZserioCppRuntime)

compiler_reset_warnings()
compiler_set_test_warnings()
if (SANITIZERS_ENABLED)
compiler_set_undefined_sanitizer()
endif ()

# A function which checks whether the number of warnings produced by zserio compilers is as expected.
function(check_zserio_warnings ZSERIO_LOG EXPECTED_WARNINGS)
Expand Down

0 comments on commit bedd5c8

Please sign in to comment.