diff --git a/src/libraries/Common/tests/System/Net/WebSockets/WebSocketCreateTest.cs b/src/libraries/Common/tests/System/Net/WebSockets/WebSocketCreateTest.cs index f22a8add7d96ae..7f391f7754ec67 100644 --- a/src/libraries/Common/tests/System/Net/WebSockets/WebSocketCreateTest.cs +++ b/src/libraries/Common/tests/System/Net/WebSockets/WebSocketCreateTest.cs @@ -40,6 +40,7 @@ public void CreateFromStream_ValidBufferSizes_CreatesWebSocket() [OuterLoop("Uses external servers")] [Theory] [MemberData(nameof(EchoServers))] + [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Sockets is not supported on this platform. public async Task WebSocketProtocol_CreateFromConnectedStream_CanSendReceiveData(Uri echoUri) { if (PlatformDetection.IsWindows7) @@ -203,6 +204,7 @@ public async Task ReceiveAsync_ServerSplitHeader_ValidDataReceived() [OuterLoop("Uses external servers")] [Theory] [MemberData(nameof(EchoServersAndBoolean))] + [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Sockets is not supported on this platform. public async Task WebSocketProtocol_CreateFromConnectedStream_CloseAsyncClosesStream(Uri echoUri, bool explicitCloseAsync) { if (PlatformDetection.IsWindows7) @@ -244,6 +246,7 @@ public async Task WebSocketProtocol_CreateFromConnectedStream_CloseAsyncClosesSt [OuterLoop("Uses external servers")] [Theory] [MemberData(nameof(EchoServersAndBoolean))] + [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Sockets is not supported on this platform. public async Task WebSocketProtocol_CreateFromConnectedStream_CloseAsyncAfterCloseReceivedClosesStream(Uri echoUri, bool useCloseOutputAsync) { using (var client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) diff --git a/src/libraries/Common/tests/Tests/System/StringTests.cs b/src/libraries/Common/tests/Tests/System/StringTests.cs index 8ea5bbac4b0ca1..305c0efc6b4506 100644 --- a/src/libraries/Common/tests/Tests/System/StringTests.cs +++ b/src/libraries/Common/tests/Tests/System/StringTests.cs @@ -317,7 +317,7 @@ void Validate(string result) Validate(string.Concat((IEnumerable)values)); // Call the generic IEnumerable-based overload } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // mini-stress test that likely runs for several seconds public static void Concat_String_ConcurrencySafe() { diff --git a/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs index 5c59e53f3cbcc4..cb18979ec407de 100644 --- a/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs @@ -741,7 +741,7 @@ public static void TestAddAnyTakeAny_Longrunning(int numOfAdds, int numOfTakes, /// are consumed by consumers with no element lost nor consumed more than once. /// Total number of producer and consumer threads. /// Number of elements to Add/Take per thread. - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(4, 2048, 2, 64)] [OuterLoop] private static void TestConcurrentAddAnyTakeAny(int numOfThreads, int numOfElementsPerThread, int numOfCollections, int boundOfCollections) diff --git a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs index 393b97759ca073..e466a37f920d7a 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs @@ -1032,7 +1032,7 @@ public static void TestTryUpdate() } [OuterLoop("Runs for several seconds")] - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public void ConcurrentWriteRead_NoTornValues() { var cd = new ConcurrentDictionary>(); diff --git a/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs b/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs index ef699764e4214a..f94c4a758fd8f9 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs @@ -735,7 +735,7 @@ public void ManyConcurrentAddsTakes_EnsureTrackedCountsMatchResultingCollection( } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public void ManyConcurrentAddsTakes_CollectionRemainsConsistent() { diff --git a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs index aea1086d0d58e2..e50fd1a3c38582 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs @@ -1007,7 +1007,7 @@ public class Hashtable_ItemThreadSafetyTests private const int MAX_TEST_TIME_MS = 10000; // 10 seconds - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public void GetItem_ThreadSafety() { @@ -1100,7 +1100,7 @@ public class Hashtable_SynchronizedTests private Hashtable _hash2; private int _iNumberOfElements = 20; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public void SynchronizedThreadSafety() { diff --git a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs index 8125d6a014a88b..aa7c8f9ec1b17e 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs @@ -1537,7 +1537,7 @@ public class SortedList_SyncRootTests private SortedList _sortListGrandDaughter; private const int NumberOfElements = 100; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public void GetSyncRootBasic() { diff --git a/src/libraries/System.Console/tests/WindowAndCursorProps.cs b/src/libraries/System.Console/tests/WindowAndCursorProps.cs index 07309799a7549b..1da4ce47340ab6 100644 --- a/src/libraries/System.Console/tests/WindowAndCursorProps.cs +++ b/src/libraries/System.Console/tests/WindowAndCursorProps.cs @@ -276,7 +276,7 @@ public static void Title_SetNull_ThrowsArgumentNullException() AssertExtensions.Throws("value", () => Console.Title = null); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // makes noise, not very inner-loop friendly public static void Beep_Invoke_Success() { diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs index d09d45e484148c..16267316c03201 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs @@ -500,7 +500,7 @@ public void AllListenersCheckCatchupList() /// Stresses the AllListeners by having many threads be adding and removing. /// [OuterLoop] - [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28772")] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process), nameof(PlatformDetection.IsThreadingSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28772")] [InlineData(100, 100)] // run multiple times to stress it further [InlineData(100, 101)] [InlineData(100, 102)] diff --git a/src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs b/src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs index f1847b27655e30..4fa32f51279362 100644 --- a/src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs +++ b/src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs @@ -100,6 +100,7 @@ public void ValidateUsingCasedRegionName(string regionName) [Theory] [InlineData("en-US", "United States")] [OuterLoop("May fail on machines with multiple language packs installed")] // see https://github.com/dotnet/runtime/issues/30132 + [ActiveIssue("https://github.com/dotnet/runtime/issues/45951", TestPlatforms.Browser)] public void DisplayName(string name, string expected) { using (new ThreadCultureChange(null, new CultureInfo(name))) diff --git a/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs b/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs index a5d9b5ee9952fa..59a39d881ba5a2 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs @@ -56,6 +56,7 @@ public void ValidWrite(int size) [Fact] [OuterLoop] + [ActiveIssue("https://github.com/dotnet/runtime/issues/45954", TestPlatforms.Browser)] public void ReadFileOver2GB() { string path = GetTestFilePath(); diff --git a/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs b/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs index 3c46acff8b4b78..471f950c14dc1a 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs @@ -70,6 +70,7 @@ public Task AlreadyCanceledAsync() [Fact] [OuterLoop] + [ActiveIssue("https://github.com/dotnet/runtime/issues/45954", TestPlatforms.Browser)] public Task ReadFileOver2GBAsync() { string path = GetTestFilePath(); diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs index 170a890d79cb7e..6ed4d1db2c4cc6 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs @@ -192,7 +192,7 @@ public Task ManyConcurrentWriteAsyncs() numWrites: 10); } - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [MemberData(nameof(MemberData_FileStreamAsyncWriting))] [OuterLoop] // many combinations: we test just one in inner loop and the rest outer public async Task ManyConcurrentWriteAsyncs_OuterLoop( diff --git a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs index 850f5c8feed31c..fa1bfb3edf31de 100644 --- a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs @@ -27,8 +27,9 @@ public static void CompileDeepTree_NoStackOverflow(bool useInterpreter) Assert.Equal(n, f()); } - [Theory, ClassData(typeof(CompilationTypes))] + [ClassData(typeof(CompilationTypes))] [OuterLoop("May fail with SO on Debug JIT")] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public static void CompileDeepTree_NoStackOverflowFast(bool useInterpreter) { Expression e = Expression.Constant(0); diff --git a/src/libraries/System.Security.SecureString/tests/SecureStringTests.cs b/src/libraries/System.Security.SecureString/tests/SecureStringTests.cs index aec5b7faae9aa7..ed094b312326cb 100644 --- a/src/libraries/System.Security.SecureString/tests/SecureStringTests.cs +++ b/src/libraries/System.Security.SecureString/tests/SecureStringTests.cs @@ -446,8 +446,8 @@ public static void Grow_Large() } [OuterLoop] - [Theory] [InlineData(5)] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public static void ThreadSafe_Stress(int executionTimeSeconds) // do some minimal verification that an instance can be used concurrently { using (var ss = new SecureString()) diff --git a/src/libraries/System.Text.Json/tests/Serialization/EnumConverterTests.cs b/src/libraries/System.Text.Json/tests/Serialization/EnumConverterTests.cs index fd8d0b850acd3a..2365a920170383 100644 --- a/src/libraries/System.Text.Json/tests/Serialization/EnumConverterTests.cs +++ b/src/libraries/System.Text.Json/tests/Serialization/EnumConverterTests.cs @@ -250,7 +250,8 @@ public static void MoreThan64EnumValuesToSerializeWithNamingPolicy() } } - [Fact, OuterLoop] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [OuterLoop] public static void VeryLargeAmountOfEnumsToSerialize() { // Ensure we don't throw OutOfMemoryException. diff --git a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/ConcurrentTests.cs b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/ConcurrentTests.cs index fc5e05eac65332..bfa70a2a1a71fe 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/ConcurrentTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/ConcurrentTests.cs @@ -14,7 +14,7 @@ public class ConcurrentTests static readonly int s_dop = Environment.ProcessorCount * 2; const int IterationCount = 10000; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // should be a stress test that runs for a while, but needs cleanup public void RunConcurrentTests() { diff --git a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs index a28003d443257f..be3d0060b45dee 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs @@ -116,6 +116,7 @@ public void TestNullTarget_Completion() [Fact] [OuterLoop] // finalizer/GC interactions + [ActiveIssue("https://github.com/dotnet/runtime/issues/46566", TestPlatforms.Browser)] public void TestNullTarget_CompletionNoCaching() { // Make sure that the Completion task returned by a NullTarget @@ -343,6 +344,7 @@ public async Task TestAsObservableAndAsObserver_AllObserversGetData() [Fact] [OuterLoop] // stress test + [ActiveIssue("https://github.com/dotnet/runtime/issues/46566", TestPlatforms.Browser)] public void TestAsObservableAndAsObserver_AsObservableDoesntLeak() { const int Count = 1000; @@ -1004,7 +1006,7 @@ public async Task TestReceive_NotYetAvailable() Assert.Equal(expected: 6, actual: await t4); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // timeout involved public async Task TestReceive_Timeout() { diff --git a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformBlockTests.cs b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformBlockTests.cs index 49e0797f36a564..a294870133befd 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformBlockTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformBlockTests.cs @@ -312,7 +312,7 @@ public void TestInputCount() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // spins waiting for a condition to be true, though it should happen very quickly public async Task TestCount() { diff --git a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformManyBlockTests.cs b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformManyBlockTests.cs index 1fe86faaa45ac1..fd94ffbb16c14d 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformManyBlockTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/TransformManyBlockTests.cs @@ -340,7 +340,7 @@ public void TestInputCount() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // spins waiting for a condition to be true, though it should happen very quickly public async Task TestCount() { diff --git a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs index 8d4029cede1aad..8ba430cbbe5f08 100644 --- a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs @@ -1469,7 +1469,7 @@ public static async Task CancellationTokenRegistration_ConcurrentUnregisterWithC } [OuterLoop("Runs for several seconds")] - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public static void Unregister_ConcurrentUse_ThreadSafe() { CancellationTokenRegistration reg = default; diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs index d60add3086151c..a140578160d97f 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs @@ -42,7 +42,7 @@ public sealed class TaskAPMTests : IDisposable /// private const int LongTaskMilliseconds = 100; - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] [InlineData(true)] [InlineData(false)] @@ -110,7 +110,7 @@ public void WaitOnAsyncWaitHandleTechnique(bool hasReturnType) Assert.False(asyncResult.CompletedSynchronously, "Should not have completed synchronously."); } - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] [InlineData(true)] [InlineData(false)] diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs index df7dc14297a6ba..68f74885dae12d 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs @@ -72,7 +72,7 @@ public static void TaskCancelWait4() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait5() { @@ -106,7 +106,7 @@ public static void TaskCancelWait6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait7() { @@ -186,7 +186,7 @@ public static void TaskCancelWait10() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait11() { @@ -226,7 +226,7 @@ public static void TaskCancelWait12() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait13() { @@ -262,7 +262,7 @@ public static void TaskCancelWait14() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait15() { @@ -316,7 +316,7 @@ public static void TaskCancelWait17() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait18() { @@ -353,7 +353,7 @@ public static void TaskCancelWait19() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait20() { @@ -465,7 +465,7 @@ public static void TaskCancelWait25() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait26() { @@ -480,7 +480,7 @@ public static void TaskCancelWait26() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait27() { @@ -503,7 +503,7 @@ public static void TaskCancelWait27() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait28() { @@ -530,7 +530,7 @@ public static void TaskCancelWait28() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait29() { @@ -547,7 +547,7 @@ public static void TaskCancelWait29() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait30() { @@ -571,7 +571,7 @@ public static void TaskCancelWait30() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait31() { @@ -583,7 +583,7 @@ public static void TaskCancelWait31() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait32() { @@ -595,7 +595,7 @@ public static void TaskCancelWait32() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait33() { @@ -618,7 +618,7 @@ public static void TaskCancelWait33() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait34() { @@ -642,7 +642,7 @@ public static void TaskCancelWait34() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait35() { @@ -657,7 +657,7 @@ public static void TaskCancelWait35() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait36() { @@ -684,7 +684,7 @@ public static void TaskCancelWait36() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait37() { @@ -701,7 +701,7 @@ public static void TaskCancelWait37() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait38() { @@ -713,7 +713,7 @@ public static void TaskCancelWait38() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait39() { @@ -730,7 +730,7 @@ public static void TaskCancelWait39() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait40() { @@ -754,7 +754,7 @@ public static void TaskCancelWait40() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait41() { @@ -781,7 +781,7 @@ public static void TaskCancelWait41() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait42() { @@ -796,7 +796,7 @@ public static void TaskCancelWait42() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait43() { @@ -819,7 +819,7 @@ public static void TaskCancelWait43() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait44() { @@ -831,7 +831,7 @@ public static void TaskCancelWait44() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait45() { @@ -855,7 +855,7 @@ public static void TaskCancelWait45() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait46() { @@ -870,7 +870,7 @@ public static void TaskCancelWait46() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait47() { @@ -893,7 +893,7 @@ public static void TaskCancelWait47() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait48() { @@ -916,7 +916,7 @@ public static void TaskCancelWait48() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait49() { @@ -928,7 +928,7 @@ public static void TaskCancelWait49() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait50() { @@ -952,7 +952,7 @@ public static void TaskCancelWait50() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait51() { @@ -967,7 +967,7 @@ public static void TaskCancelWait51() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait52() { @@ -994,7 +994,7 @@ public static void TaskCancelWait52() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait53() { @@ -1009,7 +1009,7 @@ public static void TaskCancelWait53() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait54() { @@ -1036,7 +1036,7 @@ public static void TaskCancelWait54() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait55() { @@ -1048,7 +1048,7 @@ public static void TaskCancelWait55() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait56() { @@ -1065,7 +1065,7 @@ public static void TaskCancelWait56() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait57() { @@ -1080,7 +1080,7 @@ public static void TaskCancelWait57() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait58() { @@ -1107,7 +1107,7 @@ public static void TaskCancelWait58() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait59() { @@ -1124,7 +1124,7 @@ public static void TaskCancelWait59() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait60() { @@ -1141,7 +1141,7 @@ public static void TaskCancelWait60() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait61() { @@ -1165,7 +1165,7 @@ public static void TaskCancelWait61() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait62() { @@ -1182,7 +1182,7 @@ public static void TaskCancelWait62() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait63() { @@ -1209,7 +1209,7 @@ public static void TaskCancelWait63() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait64() { @@ -1233,7 +1233,7 @@ public static void TaskCancelWait64() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait65() { @@ -1256,7 +1256,7 @@ public static void TaskCancelWait65() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait66() { @@ -1279,7 +1279,7 @@ public static void TaskCancelWait66() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait67() { @@ -1291,7 +1291,7 @@ public static void TaskCancelWait67() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait68() { @@ -1314,7 +1314,7 @@ public static void TaskCancelWait68() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait69() { @@ -1329,7 +1329,7 @@ public static void TaskCancelWait69() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait70() { @@ -1356,7 +1356,7 @@ public static void TaskCancelWait70() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait71() { @@ -1379,7 +1379,7 @@ public static void TaskCancelWait71() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait72() { @@ -1403,7 +1403,7 @@ public static void TaskCancelWait72() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait73() { @@ -1430,7 +1430,7 @@ public static void TaskCancelWait73() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait74() { @@ -1447,7 +1447,7 @@ public static void TaskCancelWait74() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait75() { @@ -1464,7 +1464,7 @@ public static void TaskCancelWait75() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait76() { @@ -1476,7 +1476,7 @@ public static void TaskCancelWait76() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait77() { @@ -1500,7 +1500,7 @@ public static void TaskCancelWait77() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait78() { @@ -1523,7 +1523,7 @@ public static void TaskCancelWait78() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait79() { @@ -1547,7 +1547,7 @@ public static void TaskCancelWait79() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait80() { @@ -1559,7 +1559,7 @@ public static void TaskCancelWait80() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait81() { @@ -1583,7 +1583,7 @@ public static void TaskCancelWait81() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait82() { @@ -1606,7 +1606,7 @@ public static void TaskCancelWait82() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait83() { @@ -1623,7 +1623,7 @@ public static void TaskCancelWait83() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait84() { @@ -1635,7 +1635,7 @@ public static void TaskCancelWait84() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait85() { @@ -1650,7 +1650,7 @@ public static void TaskCancelWait85() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait86() { @@ -1677,7 +1677,7 @@ public static void TaskCancelWait86() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait87() { @@ -1689,7 +1689,7 @@ public static void TaskCancelWait87() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait88() { @@ -1704,7 +1704,7 @@ public static void TaskCancelWait88() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait89() { @@ -1719,7 +1719,7 @@ public static void TaskCancelWait89() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait90() { @@ -1746,7 +1746,7 @@ public static void TaskCancelWait90() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait91() { @@ -1763,7 +1763,7 @@ public static void TaskCancelWait91() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait92() { @@ -1780,7 +1780,7 @@ public static void TaskCancelWait92() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait93() { @@ -1797,7 +1797,7 @@ public static void TaskCancelWait93() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait94() { @@ -1814,7 +1814,7 @@ public static void TaskCancelWait94() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait95() { @@ -1826,7 +1826,7 @@ public static void TaskCancelWait95() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait96() { @@ -1850,7 +1850,7 @@ public static void TaskCancelWait96() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait97() { @@ -1877,7 +1877,7 @@ public static void TaskCancelWait97() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait98() { @@ -1889,7 +1889,7 @@ public static void TaskCancelWait98() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait99() { @@ -1904,7 +1904,7 @@ public static void TaskCancelWait99() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait100() { @@ -1927,7 +1927,7 @@ public static void TaskCancelWait100() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait101() { @@ -1944,7 +1944,7 @@ public static void TaskCancelWait101() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait102() { @@ -1968,7 +1968,7 @@ public static void TaskCancelWait102() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait103() { @@ -1991,7 +1991,7 @@ public static void TaskCancelWait103() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait104() { @@ -2006,7 +2006,7 @@ public static void TaskCancelWait104() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait105() { @@ -2018,7 +2018,7 @@ public static void TaskCancelWait105() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait106() { @@ -2041,7 +2041,7 @@ public static void TaskCancelWait106() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait107() { @@ -2065,7 +2065,7 @@ public static void TaskCancelWait107() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait108() { @@ -2092,7 +2092,7 @@ public static void TaskCancelWait108() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait109() { @@ -2119,7 +2119,7 @@ public static void TaskCancelWait109() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait110() { @@ -2134,7 +2134,7 @@ public static void TaskCancelWait110() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait111() { @@ -2157,7 +2157,7 @@ public static void TaskCancelWait111() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait112() { @@ -2180,7 +2180,7 @@ public static void TaskCancelWait112() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait113() { @@ -2195,7 +2195,7 @@ public static void TaskCancelWait113() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait114() { @@ -2212,7 +2212,7 @@ public static void TaskCancelWait114() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait115() { @@ -2224,7 +2224,7 @@ public static void TaskCancelWait115() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait116() { @@ -2248,7 +2248,7 @@ public static void TaskCancelWait116() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait117() { @@ -2275,7 +2275,7 @@ public static void TaskCancelWait117() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait118() { @@ -2299,7 +2299,7 @@ public static void TaskCancelWait118() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait119() { @@ -2326,7 +2326,7 @@ public static void TaskCancelWait119() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait120() { @@ -2338,7 +2338,7 @@ public static void TaskCancelWait120() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait121() { @@ -2355,7 +2355,7 @@ public static void TaskCancelWait121() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait122() { @@ -2370,7 +2370,7 @@ public static void TaskCancelWait122() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait123() { @@ -2387,7 +2387,7 @@ public static void TaskCancelWait123() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait124() { @@ -2399,7 +2399,7 @@ public static void TaskCancelWait124() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait125() { @@ -2414,7 +2414,7 @@ public static void TaskCancelWait125() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait126() { @@ -2431,7 +2431,7 @@ public static void TaskCancelWait126() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait127() { @@ -2454,7 +2454,7 @@ public static void TaskCancelWait127() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait128() { @@ -2477,7 +2477,7 @@ public static void TaskCancelWait128() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait129() { @@ -2504,7 +2504,7 @@ public static void TaskCancelWait129() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait130() { @@ -2531,7 +2531,7 @@ public static void TaskCancelWait130() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait131() { @@ -2554,7 +2554,7 @@ public static void TaskCancelWait131() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait132() { @@ -2569,7 +2569,7 @@ public static void TaskCancelWait132() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait133() { @@ -2596,7 +2596,7 @@ public static void TaskCancelWait133() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait134() { @@ -2608,7 +2608,7 @@ public static void TaskCancelWait134() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait135() { @@ -2632,7 +2632,7 @@ public static void TaskCancelWait135() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait136() { @@ -2656,7 +2656,7 @@ public static void TaskCancelWait136() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait137() { @@ -2673,7 +2673,7 @@ public static void TaskCancelWait137() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait138() { @@ -2696,7 +2696,7 @@ public static void TaskCancelWait138() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait139() { @@ -2720,7 +2720,7 @@ public static void TaskCancelWait139() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait140() { @@ -2735,7 +2735,7 @@ public static void TaskCancelWait140() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskCancelWait141() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs index 3b6761d3ece8b1..7ac4341cf04b66 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs @@ -801,7 +801,7 @@ public static void TaskContinueWithAllAnyTest1() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest2() { @@ -817,7 +817,7 @@ public static void TaskContinueWithAllAnyTest2() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest3() { @@ -842,7 +842,7 @@ public static void TaskContinueWithAllAnyTest4() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest5() { @@ -871,7 +871,7 @@ public static void TaskContinueWithAllAnyTest6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest7() { @@ -898,7 +898,7 @@ public static void TaskContinueWithAllAnyTest8() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest9() { @@ -912,7 +912,7 @@ public static void TaskContinueWithAllAnyTest9() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest10() { @@ -928,7 +928,7 @@ public static void TaskContinueWithAllAnyTest10() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest11() { @@ -968,7 +968,7 @@ public static void TaskContinueWithAllAnyTest13() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest14() { @@ -1008,7 +1008,7 @@ public static void TaskContinueWithAllAnyTest16() } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest17() { @@ -1072,7 +1072,7 @@ public static void TaskContinueWithAllAnyTest21() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest22() { @@ -1099,7 +1099,7 @@ public static void TaskContinueWithAllAnyTest23() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest24() { @@ -1126,7 +1126,7 @@ public static void TaskContinueWithAllAnyTest25() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest26() { @@ -1164,7 +1164,7 @@ public static void TaskContinueWithAllAnyTest27() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest28() { @@ -1185,7 +1185,7 @@ public static void TaskContinueWithAllAnyTest28() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest29() { @@ -1206,7 +1206,7 @@ public static void TaskContinueWithAllAnyTest29() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest30() { @@ -1310,7 +1310,7 @@ public static void TaskContinueWithAllAnyTest37() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest38() { @@ -1323,7 +1323,7 @@ public static void TaskContinueWithAllAnyTest38() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskContinueWithAllAnyTest39() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs index a66fe871f9d8cc..e763ae63a43d4e 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs @@ -12,7 +12,7 @@ namespace System.Threading.Tasks.Tests { public static class TaskRtTests { - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void RunRunTests() { @@ -128,7 +128,7 @@ public static void RunRunTests() Assert.True(future2.Status == TaskStatus.RanToCompletion, " > FAILED. Future(unwrapped) w/ uncanceled token did not end in RanToCompletion state."); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void RunRunTests_Cancellation_Negative() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs index c9a3ca06341536..889b7d75f71c46 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs @@ -1334,7 +1334,7 @@ public static void RunTaskWaitAnyTests_WithCancellationTokenTests() } // creates a large number of tasks and does WaitAll on them from a thread of the specified apartment state - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void RunTaskWaitAllTests() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs index 4a25bf774fd833..d85fe81ffac8fa 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs @@ -432,7 +432,7 @@ public static void TaskRunSyncTest2() TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest3() { @@ -523,7 +523,7 @@ public static void TaskRunSyncTest14() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest15() { @@ -540,7 +540,7 @@ public static void TaskRunSyncTest16() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest17() { @@ -549,7 +549,7 @@ public static void TaskRunSyncTest17() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest18() { @@ -557,7 +557,7 @@ public static void TaskRunSyncTest18() TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest19() { @@ -566,7 +566,7 @@ public static void TaskRunSyncTest19() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest20() { @@ -590,7 +590,7 @@ public static void TaskRunSyncTest22() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest23() { @@ -598,7 +598,7 @@ public static void TaskRunSyncTest23() TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskRunSyncTest24() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs index 7c3a38668a0db2..8001e2da4b0339 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs @@ -430,7 +430,7 @@ public static void TaskStatus1() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus2() { @@ -442,7 +442,7 @@ public static void TaskStatus2() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus3() { @@ -503,7 +503,7 @@ public static void TaskStatus7() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus8() { @@ -515,7 +515,7 @@ public static void TaskStatus8() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus9() { @@ -555,7 +555,7 @@ public static void TaskStatus11() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus12() { @@ -570,7 +570,7 @@ public static void TaskStatus12() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus13() { @@ -611,7 +611,7 @@ public static void TaskStatus15() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskStatus16() { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs index c028d596b216da..f597310020d626 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs @@ -451,7 +451,7 @@ private bool CheckResult(double result) public sealed class TaskWaitAllAny { - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny0() { @@ -462,7 +462,7 @@ public static void TaskWaitAllAny0() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny1() { @@ -504,7 +504,7 @@ public static void TaskWaitAllAny4() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny5() { @@ -531,7 +531,7 @@ public static void TaskWaitAllAny6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny7() { @@ -807,7 +807,7 @@ public static void TaskWaitAllAny30() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny31() { @@ -892,7 +892,7 @@ public static void TaskWaitAllAny32() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny33() { @@ -903,7 +903,7 @@ public static void TaskWaitAllAny33() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny34() { @@ -940,7 +940,7 @@ public static void TaskWaitAllAny36() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny37() { @@ -1028,7 +1028,7 @@ public static void TaskWaitAllAny44() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny45() { diff --git a/src/libraries/System.Threading.Timer/tests/TimerFiringTests.cs b/src/libraries/System.Threading.Timer/tests/TimerFiringTests.cs index d7c963da7b8ea5..a0f185089856f0 100644 --- a/src/libraries/System.Threading.Timer/tests/TimerFiringTests.cs +++ b/src/libraries/System.Threading.Timer/tests/TimerFiringTests.cs @@ -62,7 +62,7 @@ public void Timer_Fires_AndPassesNullStateThroughCallback() } [OuterLoop("Several second delays")] - [Theory] // values chosen based on knowing the 333 pivot used in implementation + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] // values chosen based on knowing the 333 pivot used in implementation [InlineData(1, 1)] [InlineData(50, 50)] [InlineData(250, 50)] @@ -284,7 +284,7 @@ select Task.Run(async () => })); } - [PlatformSpecific(~TestPlatforms.OSX)] // macOS in CI appears to have a lot more variation + [PlatformSpecific(~TestPlatforms.OSX & ~TestPlatforms.Browser)] // macOS and Browser in CI appears to have a lot more variation [OuterLoop("Takes several seconds")] [Theory] // selection based on 333ms threshold used by implementation [InlineData(new int[] { 15 })] diff --git a/src/libraries/System.Threading/tests/BarrierTests.cs b/src/libraries/System.Threading/tests/BarrierTests.cs index 199de37156b618..c6b8640cb58d29 100644 --- a/src/libraries/System.Threading/tests/BarrierTests.cs +++ b/src/libraries/System.Threading/tests/BarrierTests.cs @@ -371,7 +371,7 @@ public static void RunBarrierTest9_PostPhaseException() EnsurePostPhaseThrew(barrier); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void RunBarrierTest10a() { diff --git a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs index 2905dbeceb7f65..d4569737e35078 100644 --- a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs +++ b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs @@ -380,7 +380,7 @@ public static void WriterToUpgradeableReaderChain() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void ReleaseReadersWhenWaitingWriterTimesOut() { @@ -449,7 +449,7 @@ public static void ReleaseReadersWhenWaitingWriterTimesOut() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void DontReleaseWaitingReadersWhenThereAreWaitingWriters() { diff --git a/src/libraries/System.Threading/tests/SpinLockTests.cs b/src/libraries/System.Threading/tests/SpinLockTests.cs index 5c0ca50420e881..5b027b32a58430 100644 --- a/src/libraries/System.Threading/tests/SpinLockTests.cs +++ b/src/libraries/System.Threading/tests/SpinLockTests.cs @@ -69,7 +69,7 @@ public static void RunSpinLockTests_NegativeTests() /// Number of threads that call enter/exit /// True if succeeded, false otherwise [OuterLoop] - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(2, false)] [InlineData(128, false)] [InlineData(256, false)] @@ -139,7 +139,7 @@ public static void RunSpinLockTest0_Enter(int threadsCount, bool enableThreadIDs /// Number of threads that call enter/exit /// True if succeeded, false otherwise [OuterLoop] - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(2, false)] [InlineData(128, false)] [InlineData(256, false)] @@ -193,7 +193,7 @@ public static void RunSpinLockTest1_TryEnter(int threadsCount, bool enableThread /// Number of threads that call enter/exit /// True if succeeded, false otherwise [OuterLoop] - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(2, false)] [InlineData(128, false)] [InlineData(256, false)] diff --git a/src/libraries/System.Threading/tests/ThreadLocalTests.cs b/src/libraries/System.Threading/tests/ThreadLocalTests.cs index b6a1e1569c89f2..ff175d8497058d 100644 --- a/src/libraries/System.Threading/tests/ThreadLocalTests.cs +++ b/src/libraries/System.Threading/tests/ThreadLocalTests.cs @@ -369,6 +369,7 @@ public static void RunThreadLocalTest9_Uninitialized() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Operation is not supported on this platform. public static void ValuesGetterDoesNotThrowUnexpectedExceptionWhenDisposed() { var startTest = new ManualResetEvent(false); diff --git a/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs b/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs index a90a0e98f7c98b..4ce10e8e9eee4b 100644 --- a/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs +++ b/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs @@ -157,7 +157,7 @@ public void Run(CloneType cloneType, IsolationLevel isoLevel, bool forcePromote, } [OuterLoop] // transaction timeout of 1.5 seconds per InlineData invocation. - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(CloneType.BlockingDependent, IsolationLevel.Serializable, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.RepeatableRead, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.ReadCommitted, false, TransactionStatus.Aborted)] diff --git a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs index a4d2e01e77f6d1..747d33a280d8c0 100644 --- a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs +++ b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs @@ -2148,7 +2148,7 @@ public void PSPENonMsdtcAbortingCloneNotCompleted(bool promote) /// PSPE Non-MSDTC Blocking Clone Completed After Commit. /// [OuterLoop] // long delay - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(false)] [InlineData(true)] public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) @@ -2161,7 +2161,7 @@ public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) /// PSPE Non-MSDTC Timeout. /// [OuterLoop] // long timeout - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(false)] [InlineData(true)] public void PSPENonMsdtcTimeout(bool promote) diff --git a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs index 5a3e93bd329354..06ba17a17d3d3f 100644 --- a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs +++ b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs @@ -505,7 +505,7 @@ public void RMFail1() Assert.Null(Transaction.Current); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // 30 second timeout public void RMFail2() {