Commit c169bb12 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

preload asan if we are compiling with ECM_ENABLE_SANITIZERS

parent a07ed2ea
......@@ -80,6 +80,10 @@ macro( marble_add_test TEST_NAME )
set_target_properties( ${TEST_NAME} PROPERTIES
COMPILE_FLAGS "-DDATA_PATH=\"\\\"${DATA_PATH}\\\"\" -DPLUGIN_PATH=\"\\\"${PLUGIN_PATH}\\\"\"" )
add_test( ${TEST_NAME} ${TEST_NAME} )
if( ECM_ENABLE_SANITIZERS )
set_property(TEST ${TEST_NAME} PROPERTY ENVIRONMENT "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.2.0.0")
endif( ECM_ENABLE_SANITIZERS )
endif( BUILD_MARBLE_TESTS )
endmacro( marble_add_test TEST_NAME )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment