[corlib] Fix tests to compile when Thread.Suspend/Resume is not supported.
[mono.git] / mcs / class / corlib / Test / System.Threading / WaitHandleTest.cs
index 122171b822a69f17d714e2899591739a8d4cda11..2fc0a6dd01d6963dfb8ae777ca494622d2dcee12 100644 (file)
@@ -395,6 +395,7 @@ namespace MonoTests.System.Threading {
                        }
                }
 
+#if MONO_FEATURE_THREAD_SUSPEND_RESUME
                [Test]
                public void WaitOneWithTimeoutAndSpuriousWake ()
                {
@@ -483,6 +484,7 @@ namespace MonoTests.System.Threading {
                                Assert.IsTrue (thread.Join (1000), "#1");
                        }
                }
+#endif // MONO_FEATURE_THREAD_SUSPEND_RESUME
        }
 }