Skip to content

Commit 42887fa

Browse files
committed
CHANGE valgrind tests return 1 on error
1 parent e0c97ee commit 42887fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (ENABLE_VALGRIND_TESTS)
1717
find_program(valgrind_FOUND valgrind)
1818
if (valgrind_FOUND)
1919
foreach (test_name IN LISTS tests)
20-
add_test(${test_name}_valgrind valgrind --leak-check=full ${CMAKE_BINARY_DIR}/tests/${test_name})
20+
add_test(${test_name}_valgrind valgrind --leak-check=full --error-exitcode=1 ${CMAKE_BINARY_DIR}/tests/${test_name})
2121
endforeach()
2222
else (valgrind_FOUND)
2323
Message("-- valgrind executable not found! Disabling memory leaks tests")

0 commit comments

Comments
 (0)