diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-24 23:40:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:05 -0800 |
commit | e47aa9475027ed6a255daefec85561c6b15789bd (patch) | |
tree | 3b72350676b4fe15f671ebf497d05531eb5dc1b6 | |
parent | 36670065bd74b870d0da7c6a69a9c0d222b21706 (diff) |
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 <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/xi2/Makefile.am | 1 |
2 files changed, 2 insertions, 0 deletions
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@ |