]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2036] Return non-zero exit status when valgrind finds an issue
authorMukund Sivaraman <muks@isc.org>
Tue, 12 Jun 2012 22:35:53 +0000 (04:05 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 12 Jun 2012 22:35:53 +0000 (04:05 +0530)
This should work fine with make check, so long as we have all issues
fixed or covered by suppressions. In this case, whenever a new issue
is introduced, make check would fail.

configure.ac

index 9e87477f1c7a07d086e47ada80298ac332d83c13..07c30dc6d678d72b2f3fc4450ea2f2910fae4918 100644 (file)
@@ -991,7 +991,7 @@ AC_ARG_ENABLE(valgrind, [AC_HELP_STRING([--enable-valgrind],
 AM_CONDITIONAL(ENABLE_VALGRIND, test "x$enable_valgrind" != "xno")
 
 if test "x$VALGRIND" != "xno" -a "x$enable_valgrind" != "xno"; then
-   VALGRIND_COMMAND="$VALGRIND -q --gen-suppressions=all --suppressions=\$(top_srcdir)/src/valgrind-suppressions --suppressions=\$(top_srcdir)/src/valgrind-suppressions.revisit --num-callers=24 --leak-check=full --fullpath-after="
+   VALGRIND_COMMAND="$VALGRIND -q --error-exitcode=1 --gen-suppressions=all --suppressions=\$(top_srcdir)/src/valgrind-suppressions --suppressions=\$(top_srcdir)/src/valgrind-suppressions.revisit --num-callers=24 --leak-check=full --fullpath-after="
 fi
 AC_SUBST(VALGRIND_COMMAND)