diff --git a/tests/tests.cpp b/tests/tests.cpp index 0cffcbb..c166fe6 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -122,7 +122,7 @@ int main(int argc, char *argv[]) { Derived::operator delete(d, ptr); } -#if THREAD_SUPPORT +#if THREAD_SUPPORT && __linux__ for(size_t i = 0; i < 4; i++) { std::array t; for(size_t z = 0; z < 4; z++) { diff --git a/tests/thread_tests.c b/tests/thread_tests.c index ece841a..2953d9d 100644 --- a/tests/thread_tests.c +++ b/tests/thread_tests.c @@ -97,6 +97,9 @@ void run_test_threads(void) { pthread_create(&t, NULL, allocate, (void *) &ALLOC); pthread_create(&tt, NULL, allocate, (void *) &REALLOC); pthread_create(&ttt, NULL, allocate, (void *) &CALLOC); + pthread_join(t, NULL); + pthread_join(tt, NULL); + pthread_join(ttt, NULL); #endif }