[corlib] Fix tests to compile when Thread.Suspend/Resume is not supported.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 29 Feb 2016 18:02:33 +0000 (19:02 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 29 Feb 2016 18:03:14 +0000 (19:03 +0100)
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
        }
 }