summaryrefslogtreecommitdiff
path: root/cord
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-11-23 01:17:28 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-11-23 01:17:28 +0300
commit0592da8c4783d4a1412987ec49b697f3806ebff0 (patch)
tree2fecf09a41207d55974ff67b199c1b447b117f46 /cord
parent1d7cf245be8c4d855f1213ebfb76057cc34f6b4d (diff)
downloadbdwgc-0592da8c4783d4a1412987ec49b697f3806ebff0.tar.gz
Print relevant message in tests not appropriate for leak detection mode
* cord/tests/cordtest.c (main): If GC_get_find_leak() then print a message that the test is not designed for leak detection mode (i.e., plenty of leaks could be reported). * tests/disclaim_bench.c (main): Likewise. * tests/disclaim_test.c (main): Likewise. * tests/disclaim_weakmap_test.c (main): Likewise. * tests/initsecondarythread.c (main): Likewise. * tests/middle.c (main): Likewise. * tests/realloc_test.c (main): Likewise. * tests/staticrootstest.c (main): Likewise. * tests/test_cpp.cc (main): Likewise. * tests/threadkey_test.c (main): Likewise. * tests/trace_test.c (main): Likewise.
Diffstat (limited to 'cord')
-rw-r--r--cord/tests/cordtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c
index 73ab82aa..f4868fd5 100644
--- a/cord/tests/cordtest.c
+++ b/cord/tests/cordtest.c
@@ -312,6 +312,8 @@ int main(void)
# ifndef NO_INCREMENTAL
GC_enable_incremental();
# endif
+ if (GC_get_find_leak())
+ printf("This test program is not designed for leak detection mode\n");
test_basics();
test_extras();
test_printf();