Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2018-01-15 19:52:58 +0300
committerMarek Safar <marek.safar@gmail.com>2018-01-16 10:46:03 +0300
commit00934efe152db8b3d90b527867c8dd75ccbfacfb (patch)
treec76b984f79b68be72dc6d6e3345587bd2e5195a8 /mcs
parent0d9c3dfff432f4a74f2f1588d9ec50fccc8d7ea7 (diff)
[corlib] Fixes StoppedThreadsThrowThreadStateException test build
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/Test/System.Threading/ThreadTest.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System.Threading/ThreadTest.cs b/mcs/class/corlib/Test/System.Threading/ThreadTest.cs
index 73fccd712bc..8969ca9862e 100644
--- a/mcs/class/corlib/Test/System.Threading/ThreadTest.cs
+++ b/mcs/class/corlib/Test/System.Threading/ThreadTest.cs
@@ -1045,8 +1045,10 @@ namespace MonoTests.System.Threading
Assert.Throws<ThreadStateException> (() => t.ApartmentState = ApartmentState.MTA, "ApartmentState setter");
Assert.Throws<ThreadStateException> (() => t.IsBackground = false, "IsBackground setter");
Assert.Throws<ThreadStateException> (() => t.Start (), "Start ()");
+#if MONO_FEATURE_THREAD_SUSPEND_RESUME
Assert.Throws<ThreadStateException> (() => t.Resume (), "Resume ()");
Assert.Throws<ThreadStateException> (() => t.Suspend (), "Suspend ()");
+#endif
Assert.Throws<ThreadStateException> (() => t.GetApartmentState (), "GetApartmentState ()");
Assert.Throws<ThreadStateException> (() => t.SetApartmentState (ApartmentState.MTA), "SetApartmentState ()");
Assert.Throws<ThreadStateException> (() => t.TrySetApartmentState (ApartmentState.MTA), "TrySetApartmentState ()");