build-sys: Update to latest ax_valgrind_check.m4

This allows to remove a small hack in server/Makefile.am where we were
using make check-valgrind-memcheck rather than make check-valgrind to
make sure we get a non-0 exit code on failures.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Christophe Fergeau 2017-03-22 10:20:52 +01:00 committed by Frediano Ziglio
parent 844544f8be
commit 68bc284b52
2 changed files with 4 additions and 8 deletions

View File

@ -67,7 +67,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 14
#serial 15
dnl Configured tools
m4_define([valgrind_tool_list], [[memcheck], [helgrind], [drd], [sgcheck]])
@ -187,9 +187,8 @@ endif
# Use recursive makes in order to ignore errors during check
check-valgrind:
ifeq ($(VALGRIND_ENABLED),yes)
-$(A''M_V_at)$(foreach tool,$(valgrind_enabled_tools), \
$(MAKE) $(AM_MAKEFLAGS) -k check-valgrind-$(tool); \
)
$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
$(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
else
@echo "Need to reconfigure with --enable-valgrind"
endif

View File

@ -1,11 +1,8 @@
NULL =
SUBDIRS = . tests
# Use 'check-valgrind-memcheck' rather than 'check-valgrind' to get a
# non-0 exit code on failures, see
# https://savannah.gnu.org/patch/index.php?9286
check-valgrind:
$(MAKE) -C tests check-valgrind-memcheck
$(MAKE) -C tests check-valgrind
AM_CPPFLAGS = \
-DSPICE_SERVER_INTERNAL \