]> granicus.if.org Git - gc/commit
Fix gctest in leak-finding mode
authorIvan Maidanski <ivmai@mail.ru>
Thu, 7 Jun 2018 09:09:57 +0000 (12:09 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 7 Jun 2018 09:09:57 +0000 (12:09 +0300)
commit4e909d2389d48f6393a35742b71a3e30c98157aa
tree7f02f1e6217a106ff0b05cf50a3809ae15ed1d47
parente0069e5d844d69f57346ebf5439738ee7f07f17b
Fix gctest in leak-finding mode

* tests/test.c [!FIND_LEAK] (mktree): Do not call GC_REGISTER_FINALIZER
and GC_GENERAL_REGISTER_DISAPPEARING_LINK if GC_get_find_leak().
* tests/test.c (run_one_test): Replace "ifdef FIND_LEAK" with
if(GC_get_find_leak()).
* tests/test.c (check_heap_stats): Do not fail on unexpected heap
growth if GC_get_find_leak().
tests/test.c