Skip to content

Commit

Permalink
Set ASAN_OPTIONS for tests
Browse files Browse the repository at this point in the history
Used when built against libdnf with sanitizers enabled.
  • Loading branch information
Lukáš Hrázký authored and kontura committed Jan 5, 2021
1 parent 33a20d2 commit d07d002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ADD_TEST(test ${PYTHON_EXECUTABLE} -m nose -s ${CMAKE_CURRENT_SOURCE_DIR})

SET_PROPERTY(TEST test PROPERTY ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/plugins;")
# ASAN_OPTIONS is for libdnf built with sanitizers, has no effect otherwise.
SET_PROPERTY(TEST test PROPERTY ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/plugins;ASAN_OPTIONS=verify_asan_link_order=0")

0 comments on commit d07d002

Please sign in to comment.