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>
Sat, 19 Nov 2016 17:16:27 +0000 (20:16 +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 16b94f4..73f82c5 100644 (file)
@@ -30,6 +30,7 @@
 # include "config.h"
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "gc_disclaim.h"
 
 #define my_assert(e) \
index 6b1a3d1..8e4c4b5 100644 (file)
@@ -29,6 +29,7 @@
 #  define GC_DEBUG
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "gc.h"
 
 #ifndef NTHREADS /* Number of additional threads to fork. */
index 845de00..8fedbd1 100644 (file)
@@ -7,6 +7,7 @@
 # define GC_THREADS
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "leak_detector.h"
 
 #ifdef GC_PTHREADS