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 <alan.coopersm...@oracle.com> --- test/Makefile.am | 1 + test/xi2/Makefile.am | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 3bf1f1b..62c398c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,6 +4,7 @@ noinst_PROGRAMS = xkb input xtest list misc fixes xfree86 string 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 d72bcda..c6e93e7 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@ -- 1.7.3.2 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel