]> granicus.if.org Git - gc/commitdiff
Fix threaded tests runtime crash if GC_NO_THREAD_REDIRECTS supplied
authorIvan Maidanski <ivmai@mail.ru>
Sat, 19 Nov 2016 17:16:27 +0000 (20:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 27 Nov 2016 08:55:18 +0000 (11:55 +0300)
* tests/disclaim_test.c (GC_NO_THREAD_REDIRECTS): Undefine (before
include "gc*.h").
* tests/test.c (GC_NO_THREAD_REDIRECTS): Likewise.
* tests/thread_leak_test.c (GC_NO_THREAD_REDIRECTS): Likewise.

tests/disclaim_test.c
tests/test.c
tests/thread_leak_test.c

index 7bba6fb84d54855d920d80a11b4c1f91dd05115f..a59c2361c8a58c5a5386a95a10db6d5f3eeedfb5 100644 (file)
@@ -25,6 +25,7 @@
 # include "config.h"
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "gc_disclaim.h"
 
 #define my_assert(e) \
index 49c1337447564425dd6f43377c5638ecd78f6bd2..a06df7ec85a912d1dcfcdcfae41aa13f0f0bb1a6 100644 (file)
@@ -28,6 +28,7 @@
 #  define GC_DEBUG
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "gc.h"
 
 #ifndef NTHREADS /* Number of additional threads to fork. */
index 845de00ecd9049a95ee4f2c179389a9ee5efa835..8fedbd15fcd095d7a7504008b686540203c6cdec 100644 (file)
@@ -7,6 +7,7 @@
 # define GC_THREADS
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "leak_detector.h"
 
 #ifdef GC_PTHREADS