Skip thread suspend/resume API testing for Tru64 (OSF1)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 22:30:42 +0000 (01:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 22:30:42 +0000 (01:30 +0300)
(fix commit 8ff3262)

OSF1 has GC_retry_signals on by default but this is not supported by
thread suspend/resume API yet.

* tests/test.c [GC_PTHREADS && GC_ENABLE_SUSPEND_THREAD]
(fork_a_thread): Do not test GC_suspend/resume_thread if
GC_OSF1_THREADS.

tests/test.c

index 4e0280a..1261e9c 100644 (file)
@@ -534,7 +534,7 @@ void check_marks_int_list(sexpr x)
       }
 #     if defined(GC_ENABLE_SUSPEND_THREAD) && !defined(GC_DARWIN_THREADS) \
          && !defined(GC_OPENBSD_UTHREADS) && !defined(GC_WIN32_THREADS) \
-         && !defined(NACL)
+         && !defined(NACL) && !defined(GC_OSF1_THREADS)
         if (GC_is_thread_suspended(t)) {
           GC_printf("Running thread should be not suspended\n");
           FAIL;