We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c97ee commit 42887faCopy full SHA for 42887fa
tests/CMakeLists.txt
@@ -17,7 +17,7 @@ if (ENABLE_VALGRIND_TESTS)
17
find_program(valgrind_FOUND valgrind)
18
if (valgrind_FOUND)
19
foreach (test_name IN LISTS tests)
20
- add_test(${test_name}_valgrind valgrind --leak-check=full ${CMAKE_BINARY_DIR}/tests/${test_name})
+ add_test(${test_name}_valgrind valgrind --leak-check=full --error-exitcode=1 ${CMAKE_BINARY_DIR}/tests/${test_name})
21
endforeach()
22
else (valgrind_FOUND)
23
Message("-- valgrind executable not found! Disabling memory leaks tests")
0 commit comments