summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2017-01-20 23:12:36 +0200
committerAlon Bar-Lev <alon.barlev@gmail.com>2017-01-23 20:51:36 +0200
commit4beb7d97a748e0a90cfb413670a55f47e47d2f06 (patch)
tree6f769d99afd4f9b5720dc10b25352e6551b034ae /gl
parent9a75d3e4efc00522df7e021da66e48b02d1c8b1a (diff)
downloadgnutls-4beb7d97a748e0a90cfb413670a55f47e47d2f06.tar.gz
valgrind: support separate builddir for suppressions.valgrind
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'gl')
-rw-r--r--gl/m4/valgrind-tests.m44
-rw-r--r--gl/override/m4/valgrind-tests.m4.diff14
2 files changed, 9 insertions, 9 deletions
diff --git a/gl/m4/valgrind-tests.m4 b/gl/m4/valgrind-tests.m4
index 2abae39a37..d694f26cd3 100644
--- a/gl/m4/valgrind-tests.m4
+++ b/gl/m4/valgrind-tests.m4
@@ -21,12 +21,12 @@ AC_DEFUN([gl_VALGRIND_TESTS],
AC_CHECK_PROGS(VALGRIND, valgrind)
fi
- OPTS="-q --error-exitcode=6 --leak-check=full --suppressions=suppressions.valgrind"
+ OPTS="-q --error-exitcode=6 --leak-check=full"
if test -n "$VALGRIND" \
&& $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
opt_valgrind_tests=yes
- VALGRIND="$VALGRIND $OPTS"
+ VALGRIND="$VALGRIND $OPTS --suppressions=\$(srcdir)/suppressions.valgrind"
else
opt_valgrind_tests=no
VALGRIND=
diff --git a/gl/override/m4/valgrind-tests.m4.diff b/gl/override/m4/valgrind-tests.m4.diff
index c836d67408..eb1087d5cd 100644
--- a/gl/override/m4/valgrind-tests.m4.diff
+++ b/gl/override/m4/valgrind-tests.m4.diff
@@ -1,11 +1,11 @@
--- valgrind-tests.m4.orig
+++ valgrind-tests.m4
-@@ -21,7 +21,7 @@ AC_DEFUN([gl_VALGRIND_TESTS],
- AC_CHECK_PROGS(VALGRIND, valgrind)
- fi
-
-- OPTS="-q --error-exitcode=1 --leak-check=full"
-+ OPTS="-q --error-exitcode=6 --leak-check=full --suppressions=suppressions.valgrind"
-
+@@ -26,7 +26,7 @@ AC_DEFUN([gl_VALGRIND_TESTS],
if test -n "$VALGRIND" \
&& $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
+ opt_valgrind_tests=yes
+- VALGRIND="$VALGRIND $OPTS"
++ VALGRIND="$VALGRIND $OPTS --suppressions=\$(srcdir)/suppressions.valgrind"
+ else
+ opt_valgrind_tests=no
+ VALGRIND=