summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-09-27 21:08:23 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:38:28 +0200
commitda4b908371ddc05a8402794b6929979449e4132a (patch)
treebd93b5fcac71fcee89f95424dd23038a17600ee0 /tests
parentf465bf4d82c1f995fd7629484f7acf21b1156df0 (diff)
downloadsocket_wrapper-da4b908371ddc05a8402794b6929979449e4132a.tar.gz
socket_wrapper-da4b908371ddc05a8402794b6929979449e4132a.tar.xz
socket_wrapper-da4b908371ddc05a8402794b6929979449e4132a.zip
cmake: Create an error if helgrind finds a bug
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 70fbedd..068af00 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -73,7 +73,7 @@ endforeach()
if (HELGRIND_TESTING)
find_program(VALGRIND_EXECUTABLE valgrind)
if (VALGRIND_EXECUTABLE)
- set(VALGRIND_HELGRIND_OPTIONS -v -trace-children=yes --tool=helgrind --read-var-info=yes)
+ set(VALGRIND_HELGRIND_OPTIONS -v --trace-children=yes --tool=helgrind --error-exitcode=1 --read-var-info=yes)
foreach(_TEST ${SWRAP_THREADED_TESTS})
set(_HELGRIND_TEST "helgrind_${_TEST}")