1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- valgrind-tests.m4 2018-05-25 10:11:51.767309109 +0200
+++ valgrind-tests.m4.gnutls 2018-05-25 10:20:02.999088040 +0200
@@ -12,9 +12,9 @@
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
@@ -23,7 +23,7 @@
if test "$VALGRIND"; then
AC_CACHE_CHECK([for valgrind options for tests],
[gl_cv_opt_valgrind_tests],
- [gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full"
+ [gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full --suppressions=\$(srcdir)/suppressions.valgrind"
$VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 ||
gl_cv_opt_valgrind_tests=no])
|