diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-23 02:10:10 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-23 02:10:10 +0300 |
commit | 64b623ef3c75c9fe5952f2b9dfa387e4ee8148a5 (patch) | |
tree | adc208baa36b559b61e7ff74f1e0a9bf76d25e16 /cord | |
parent | 0592da8c4783d4a1412987ec49b697f3806ebff0 (diff) | |
download | bdwgc-64b623ef3c75c9fe5952f2b9dfa387e4ee8148a5.tar.gz |
Turn off leak detection mode explicitly in cord/de
* cord/tests/de.c [!WIN32] (main): Call GC_set_find_leak(0) before
GC_INIT() to disable leak detection mode.
* cord/tests/de_win.c [WIN32] (WinMain): Likewise.
Diffstat (limited to 'cord')
-rw-r--r-- | cord/tests/de.c | 1 | ||||
-rw-r--r-- | cord/tests/de_win.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cord/tests/de.c b/cord/tests/de.c index 0d0dc5f4..2707405a 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -596,6 +596,7 @@ int main(int argc, char **argv) cshow(stdout); argc = ccommand(&argv); # endif + GC_set_find_leak(0); /* app is not for testing leak detection mode */ GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental(); diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index 62cff652..a41eb3d7 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -51,6 +51,7 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, WNDCLASS wndclass; HACCEL hAccel; + GC_set_find_leak(0); GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental(); |