From 87fee8d3461a4911695965686ba09e33f2ca1d6f Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 19 Nov 2016 20:16:27 +0300 Subject: [PATCH] Fix threaded tests runtime crash if GC_NO_THREAD_REDIRECTS supplied * 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 | 1 + tests/test.c | 1 + tests/thread_leak_test.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/disclaim_test.c b/tests/disclaim_test.c index 16b94f4f..73f82c5f 100644 --- a/tests/disclaim_test.c +++ b/tests/disclaim_test.c @@ -30,6 +30,7 @@ # include "config.h" #endif +#undef GC_NO_THREAD_REDIRECTS #include "gc_disclaim.h" #define my_assert(e) \ diff --git a/tests/test.c b/tests/test.c index 59bb6650..a0b751c3 100644 --- a/tests/test.c +++ b/tests/test.c @@ -28,6 +28,7 @@ # define GC_DEBUG #endif +#undef GC_NO_THREAD_REDIRECTS #include "gc.h" #ifndef NTHREADS /* Number of additional threads to fork. */ diff --git a/tests/thread_leak_test.c b/tests/thread_leak_test.c index 845de00e..8fedbd15 100644 --- a/tests/thread_leak_test.c +++ b/tests/thread_leak_test.c @@ -7,6 +7,7 @@ # define GC_THREADS #endif +#undef GC_NO_THREAD_REDIRECTS #include "leak_detector.h" #ifdef GC_PTHREADS -- 2.40.0