Add mcheck tests to malloc
commit784fff6ea553da551b6a4989c94c66a69c43201d
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 2 Jul 2021 02:25:10 +0000 (2 07:55 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 2 Jul 2021 11:33:42 +0000 (2 17:03 +0530)
treeecf01d972fa499165dd00dba9635690e674226ef
parent7f784fabcb186ffaa082ed0aeed52a56b7d96cee
Add mcheck tests to malloc

Like malloc-check, add generic rules to run all tests in malloc by
linking with libmcheck.a so as to provide coverage for mcheck().
Currently the following 12 tests fail:

FAIL: malloc/tst-malloc-backtrace-mcheck
FAIL: malloc/tst-malloc-fork-deadlock-mcheck
FAIL: malloc/tst-malloc-stats-cancellation-mcheck
FAIL: malloc/tst-malloc-tcache-leak-mcheck
FAIL: malloc/tst-malloc-thread-exit-mcheck
FAIL: malloc/tst-malloc-thread-fail-mcheck
FAIL: malloc/tst-malloc-usable-static-mcheck
FAIL: malloc/tst-malloc-usable-static-tunables-mcheck
FAIL: malloc/tst-malloc-usable-tunables-mcheck
FAIL: malloc/tst-malloc_info-mcheck
FAIL: malloc/tst-memalign-mcheck
FAIL: malloc/tst-posix_memalign-mcheck

and they have been added to tests-exclude-mcheck for now to keep
status quo.  At least the last two can be attributed to bugs in
mcheck() but I haven't fixed them here since they should be fixed by
removing malloc hooks.  Others need to be triaged to check if they're
due to mcheck bugs or due to actual bugs.

Reviewed-by: DJ Delorie <dj@redhat.com>
Rules
malloc/Makefile