]> git.pond.sub.org Git - empserver/commit
tests: Enable GNU libc memory allocation error checking
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Sep 2015 07:56:21 +0000 (09:56 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Dec 2015 12:03:08 +0000 (13:03 +0100)
commit6e80cf103f1e4e46efccbd3ea3454151b83b08ec
tree2a70c2e3db56f118f491ee512a415708c4b3c921
parent1abd3c5b0bfe93d7a21113f3dad070512ee119c6
tests: Enable GNU libc memory allocation error checking

MALLOC_CHECK_=3 makes glibc check for memory allocation programming
errors.  It's the factory default, but set it anyway just in case
someone disabled it for speed.

Non-zero MALLOC_PERTURB_ makes glibc wipe memory value on allocation
and deallocation.  The actual value determines the bit pattern.  Set
it to the value of environment variable EMPIRE_CHECK_MALLOC_PERTURB or
else a pseudo-random number, and record it in sandbox/malloc-perturb.

See mallopt(3) for more information.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
tests/test-common.sh