1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/m4/valgrind-tests.m4 b/m4/valgrind-tests.m4
index 50d90e145..5e198b455 100644
--- a/m4/valgrind-tests.m4
+++ b/m4/valgrind-tests.m4
@@ -12,9 +12,9 @@ dnl From Simon Josefsson
AC_DEFUN([gl_VALGRIND_TESTS],
[
AC_ARG_ENABLE([valgrind-tests],
- AS_HELP_STRING([--disable-valgrind-tests],
- [don't try to run self tests under valgrind]),
- [opt_valgrind_tests=$enableval], [opt_valgrind_tests=yes])
+ AS_HELP_STRING([--enable-valgrind-tests],
+ [try to run self tests under valgrind]),
+ [opt_valgrind_tests=$enableval], [opt_valgrind_tests=no])
# Run self-tests under valgrind?
if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
@@ -45,7 +45,7 @@ AC_DEFUN([gl_VALGRIND_TESTS],
if test -n "$VALGRIND"; then
AC_CACHE_CHECK([for valgrind options for tests],
[gl_cv_opt_valgrind_tests],
- [gl_valgrind_opts='-q --error-exitcode=1 --leak-check=full'
+ [gl_valgrind_opts='-q --error-exitcode=1 --leak-check=full --track-origins=yes --gen-suppressions=all --suppressions=\$(srcdir)/suppressions.valgrind'
if $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1; then
gl_cv_opt_valgrind_tests="$gl_valgrind_opts"
else
|