summaryrefslogtreecommitdiff
path: root/cord
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-11-23 02:10:10 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-11-23 02:10:10 +0300
commit64b623ef3c75c9fe5952f2b9dfa387e4ee8148a5 (patch)
treeadc208baa36b559b61e7ff74f1e0a9bf76d25e16 /cord
parent0592da8c4783d4a1412987ec49b697f3806ebff0 (diff)
downloadbdwgc-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.c1
-rw-r--r--cord/tests/de_win.c1
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();