From e47aa9475027ed6a255daefec85561c6b15789bd Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 24 Oct 2011 23:40:45 -0700 Subject: Enable memory checking during unit testing If configure is generated with xorg-macros 1.16.0 or newer, and an appropriate memory checking library is found for the platform, use it when running unit tests. If not, then no harm is done. Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- test/Makefile.am | 1 + test/xi2/Makefile.am | 1 + 2 files changed, 2 insertions(+) diff --git a/test/Makefile.am b/test/Makefile.am index 1804378aa..06ea6530f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,6 +4,7 @@ noinst_PROGRAMS = xkb input xtest list misc fixes xfree86 check_LTLIBRARIES = libxservertest.la TESTS=$(noinst_PROGRAMS) +TESTS_ENVIRONMENT = $(XORG_MALLOC_DEBUG_ENV) AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser \ diff --git a/test/xi2/Makefile.am b/test/xi2/Makefile.am index d72bcdadd..c6e93e78f 100644 --- a/test/xi2/Makefile.am +++ b/test/xi2/Makefile.am @@ -13,6 +13,7 @@ noinst_PROGRAMS = \ protocol-eventconvert TESTS=$(noinst_PROGRAMS) +TESTS_ENVIRONMENT = $(XORG_MALLOC_DEBUG_ENV) AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ INCLUDES = @XORG_INCS@ -- cgit v1.2.3