From: Ivan Maidanski Date: Sat, 19 Nov 2016 17:16:27 +0000 (+0300) Subject: Fix threaded tests runtime crash if GC_NO_THREAD_REDIRECTS supplied X-Git-Tag: v8.0.0~1021 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f918c281d831a8565f6c589448981eae4bfe4a1b;p=gc 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. --- 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 6b1a3d1f..8e4c4b5f 100644 --- a/tests/test.c +++ b/tests/test.c @@ -29,6 +29,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