test BUGFIX use special environment for valgrind tests too
@@ -57,6 +57,10 @@ if(ENABLE_VALGRIND_TESTS)
if(VALGRIND_FOUND)
foreach(test_name IN LISTS tests)
add_test(${test_name}_valgrind valgrind --leak-check=full --show-leak-kinds=all --error-exitcode=1 ${CMAKE_BINARY_DIR}/tests/${test_name})
+ set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT
+ "SYSREPO_REPOSITORY_PATH=${PROJECT_BINARY_DIR}/test_repositories/${test_name}"
+ "SYSREPO_SHM_PREFIX=_tests_sr_${test_name}"
+ )
endforeach(test_name)
else(VALGRIND_FOUND)
message(WARNING "valgrind executable not found! Disabling memory leak tests.")
