build: enable glibc's malloc checks for the test suite

Setting MALLOC_CHECK_=3 causes additional checks in glibc for malloc()
usage errors, abort()ing the test if those trigger. MALLOC_PERTURB_=69
causes free()'d memory to be poisoned with 0x45, leading to crashes in
case of use-after-free.
Together, both are useful for spotting more errors during "make check"
This commit is contained in:
Stefan Seyfried 2015-04-01 22:04:41 +02:00 committed by Luiz Augusto von Dentz
parent fa3be045a6
commit 0aa12f8377

View File

@ -413,6 +413,7 @@ noinst_PROGRAMS += $(unit_tests)
endif
TESTS = $(unit_tests)
AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
pkgconfigdir = $(libdir)/pkgconfig