]> 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 06:40:15 +0000 (09:40 +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 16b94f4f048b5cc96595de1ef96f41e910d8f52d..73f82c5ffa303257fe0e9251402089cb98474697 100644 (file)
@@ -30,6 +30,7 @@
 # include "config.h"
 #endif
 
+#undef GC_NO_THREAD_REDIRECTS
 #include "gc_disclaim.h"
 
 #define my_assert(e) \
index 59bb66505702d9835c1231d559c1952f149f15b9..a0b751c39db3f59e59478aabfc127281d4420539 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