configure.ac: add XORG_MEMORY_CHECK_FLAGS
authorRan Benita <ran234@gmail.com>
Fri, 21 Sep 2012 16:57:37 +0000 (19:57 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Sun, 23 Sep 2012 23:08:54 +0000 (09:08 +1000)
Adds some memory checking (e.g. MALLOC_PERTURB_) to tests.

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
configure.ac

index 19a0b73..2f16144 100644 (file)
@@ -110,7 +110,8 @@ libtest_la_SOURCES = \
 
 AM_TESTS_ENVIRONMENT = \
        XKB_LOG=debug; export XKB_LOG; \
-       XKB_VERBOSITY=10; export XKB_VERBOSITY;
+       XKB_VERBOSITY=10; export XKB_VERBOSITY; \
+       $(XORG_MALLOC_DEBUG_ENV)
 
 TESTS = \
        test/keysym \
index 1c103a4..2b40d41 100644 (file)
@@ -43,6 +43,7 @@ m4_ifndef([XORG_MACROS_VERSION],
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
+XORG_MEMORY_CHECK_FLAGS
 
 # Check for compiler features
 AC_C_INLINE