Skip to content

Commit

Permalink
[tests] One more asan attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
yomnes0 committed Jul 23, 2024
1 parent 6084964 commit 9072c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ endif()


if (ENABLE_UNITTESTS AND ENABLE_CXX11)
set(CMAKE_CXX_COMPILER_LAUNCHER env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8)

if (${CMAKE_VERSION} VERSION_LESS "3.10.0")
message(STATUS "VERSION < 3.10 -- adding test using the old method")
Expand Down Expand Up @@ -1527,7 +1528,7 @@ if (ENABLE_UNITTESTS AND ENABLE_CXX11)
)
#set_tests_properties(test-srt PROPERTIES RUN_SERIAL TRUE)
else()
set(CMAKE_CXX_COMPILER_LAUNCHER env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8)
# set(CMAKE_CXX_COMPILER_LAUNCHER env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8)
set_tests_properties(${tests_srt} PROPERTIES RUN_SERIAL TRUE)
gtest_discover_tests(test-srt)
endif()
Expand Down

0 comments on commit 9072c99

Please sign in to comment.