From: Reuben Thomas Date: Thu, 17 Mar 2011 07:43:08 +0000 (+0000) Subject: valgrind: do leak checking, and exit with code 1 on error (not 0) X-Git-Tag: v0.1~3053 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=717a0896fb68881625950983dbd4b869ed618e85;p=gnulib.git valgrind: do leak checking, and exit with code 1 on error (not 0) * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full' to VALGRIND. --- diff --git a/ChangeLog b/ChangeLog index 8988e3190..75257d1e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-25 Reuben Thomas + + valgrind: do leak checking, and exit with code 1 on error (not 0) + * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full' + to VALGRIND. + 2010-11-30 Reuben Thomas posix-modules: say what it does. diff --git a/m4/valgrind-tests.m4 b/m4/valgrind-tests.m4 index 8f90dac61..ab9e25a84 100644 --- a/m4/valgrind-tests.m4 +++ b/m4/valgrind-tests.m4 @@ -1,4 +1,4 @@ -# valgrind-tests.m4 serial 1 +# valgrind-tests.m4 serial 2 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -23,7 +23,7 @@ AC_DEFUN([gl_VALGRIND_TESTS], if test -n "$VALGRIND" && $VALGRIND -q true > /dev/null 2>&1; then opt_valgrind_tests=yes - VALGRIND="$VALGRIND -q" + VALGRIND="$VALGRIND -q --error-exitcode=1 --leak-check=full" else opt_valgrind_tests=no VALGRIND=