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: v7.4.6~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b6d01f334c2b64b988e2ab9d6fdb7e795f39e9b;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 7bba6fb8..a59c2361 100644 --- a/tests/disclaim_test.c +++ b/tests/disclaim_test.c @@ -25,6 +25,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 49c13374..a06df7ec 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