From 99e0bda779c8c0c5cc8808e57f4036fc3c80a433 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 8 Feb 2019 22:37:51 +0100 Subject: [PATCH] let valgrind fail when test app returns 0 but valgrind still found an error this allows to trace uninitialized variables etc with our default memcheck runs because now valgrind will fail such a test, even though the test executable returned zero on exit --- CTestConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTestConfig.cmake b/CTestConfig.cmake index d8e316006..d4d8b0655 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -11,4 +11,4 @@ set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "my.cdash.org") set(CTEST_DROP_LOCATION "/submit.php?project=srsLTE") set(CTEST_DROP_SITE_CDASH TRUE) -set(VALGRIND_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --show-reachable=yes --vex-guest-max-insns=25") \ No newline at end of file +set(VALGRIND_COMMAND_OPTIONS "--error-exitcode=1 --trace-children=yes --leak-check=full --show-reachable=yes --vex-guest-max-insns=25") \ No newline at end of file