From f549a04310e052c72f7073da2c10b75db10ee500 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 09:58:16 +0100 Subject: [PATCH 01/21] [browser][tests][outerloop] Standup OuterLoop tests on CI --- .../Net/WebSockets/WebSocketCreateTest.cs | 3 + .../tests/BlockingCollectionTests.cs | 1 + .../ConcurrentDictionaryTests.cs | 1 + .../tests/ProducerConsumerCollectionTests.cs | 1 + .../tests/CancelTest.cs | 2 +- .../tests/CancellationTokenTests.cs | 1 + .../tests/Task/TaskAPMTest.cs | 2 + .../tests/Task/TaskCancelWaitTests.cs | 123 ++++++++++++++++++ .../tests/Task/TaskContinueWithAllAnyTests.cs | 17 +++ .../tests/Task/TaskRtTests.cs | 2 + .../tests/Task/TaskRtTests_Core.cs | 1 + .../tests/Task/TaskRunSyncTests.cs | 8 ++ .../tests/Task/TaskStatusTest.cs | 7 + .../tests/Task/TaskWaitAllAnyTest.cs | 8 ++ .../System.Threading/tests/BarrierTests.cs | 1 + .../tests/ReaderWriterLockSlimTests.cs | 2 + .../System.Threading/tests/SpinLockTests.cs | 3 + .../tests/ThreadLocalTests.cs | 1 + .../tests/CloneTxTests.cs | 1 + .../tests/NonMsdtcPromoterTests.cs | 2 + .../tests/TransactionScopeTest.cs | 1 + 21 files changed, 187 insertions(+), 1 deletion(-) 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/System.Collections.Concurrent/tests/BlockingCollectionTests.cs b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs index 5c59e53f3cbcc4..7c7dad91e7cfc5 100644 --- a/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs @@ -744,6 +744,7 @@ public static void TestAddAnyTakeAny_Longrunning(int numOfAdds, int numOfTakes, [Theory] [InlineData(4, 2048, 2, 64)] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. private static void TestConcurrentAddAnyTakeAny(int numOfThreads, int numOfElementsPerThread, int numOfCollections, int boundOfCollections) { //If numOfThreads is not an even number, make it even. diff --git a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs index 393b97759ca073..a41ada698c0580 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs @@ -1033,6 +1033,7 @@ public static void TestTryUpdate() [OuterLoop("Runs for several seconds")] [Fact] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. 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..5d1fb3ceda28d7 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs @@ -737,6 +737,7 @@ public void ManyConcurrentAddsTakes_EnsureTrackedCountsMatchResultingCollection( [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void ManyConcurrentAddsTakes_CollectionRemainsConsistent() { IProducerConsumerCollection c = CreateProducerConsumerCollection(); diff --git a/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs b/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs index 32780301a3644b..74343fe703f1f4 100644 --- a/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs +++ b/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs @@ -6,7 +6,7 @@ using Xunit; using Xunit.Abstractions; - +[PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. namespace System.Net.WebSockets.Client.Tests { public class CancelTest : ClientWebSocketTestBase diff --git a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs index 8d4029cede1aad..503a90e6879dfc 100644 --- a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs @@ -1470,6 +1470,7 @@ public static async Task CancellationTokenRegistration_ConcurrentUnregisterWithC [OuterLoop("Runs for several seconds")] [Fact] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. 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..575102d453ca24 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs @@ -46,6 +46,7 @@ public sealed class TaskAPMTests : IDisposable [OuterLoop] [InlineData(true)] [InlineData(false)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void WaitUntilCompleteTechnique(bool hasReturnType) { _hasReturnType = hasReturnType; @@ -114,6 +115,7 @@ public void WaitOnAsyncWaitHandleTechnique(bool hasReturnType) [OuterLoop] [InlineData(true)] [InlineData(false)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void CallbackTechnique(bool hasReturnType) { _hasReturnType = hasReturnType; diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs index df7dc14297a6ba..42a5e67775b964 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs @@ -74,6 +74,7 @@ public static void TaskCancelWait4() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait5() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -108,6 +109,7 @@ public static void TaskCancelWait6() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait7() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -188,6 +190,7 @@ public static void TaskCancelWait10() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait11() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -228,6 +231,7 @@ public static void TaskCancelWait12() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait13() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -264,6 +268,7 @@ public static void TaskCancelWait14() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait15() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -318,6 +323,7 @@ public static void TaskCancelWait17() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait18() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -355,6 +361,7 @@ public static void TaskCancelWait19() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait20() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -467,6 +474,7 @@ public static void TaskCancelWait25() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait26() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -482,6 +490,7 @@ public static void TaskCancelWait26() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait27() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -505,6 +514,7 @@ public static void TaskCancelWait27() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait28() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -532,6 +542,7 @@ public static void TaskCancelWait28() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait29() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -549,6 +560,7 @@ public static void TaskCancelWait29() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait30() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -573,6 +585,7 @@ public static void TaskCancelWait30() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait31() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -585,6 +598,7 @@ public static void TaskCancelWait31() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait32() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -597,6 +611,7 @@ public static void TaskCancelWait32() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait33() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -620,6 +635,7 @@ public static void TaskCancelWait33() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait34() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -644,6 +660,7 @@ public static void TaskCancelWait34() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait35() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -659,6 +676,7 @@ public static void TaskCancelWait35() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait36() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -686,6 +704,7 @@ public static void TaskCancelWait36() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait37() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -703,6 +722,7 @@ public static void TaskCancelWait37() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait38() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -715,6 +735,7 @@ public static void TaskCancelWait38() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait39() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -732,6 +753,7 @@ public static void TaskCancelWait39() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait40() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -756,6 +778,7 @@ public static void TaskCancelWait40() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait41() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -783,6 +806,7 @@ public static void TaskCancelWait41() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait42() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -798,6 +822,7 @@ public static void TaskCancelWait42() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait43() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -821,6 +846,7 @@ public static void TaskCancelWait43() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait44() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -833,6 +859,7 @@ public static void TaskCancelWait44() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait45() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -857,6 +884,7 @@ public static void TaskCancelWait45() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait46() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -872,6 +900,7 @@ public static void TaskCancelWait46() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait47() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -895,6 +924,7 @@ public static void TaskCancelWait47() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait48() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -918,6 +948,7 @@ public static void TaskCancelWait48() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait49() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -930,6 +961,7 @@ public static void TaskCancelWait49() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait50() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -954,6 +986,7 @@ public static void TaskCancelWait50() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait51() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -969,6 +1002,7 @@ public static void TaskCancelWait51() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait52() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -996,6 +1030,7 @@ public static void TaskCancelWait52() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait53() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -1011,6 +1046,7 @@ public static void TaskCancelWait53() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait54() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -1038,6 +1074,7 @@ public static void TaskCancelWait54() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait55() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1050,6 +1087,7 @@ public static void TaskCancelWait55() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait56() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -1067,6 +1105,7 @@ public static void TaskCancelWait56() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait57() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -1082,6 +1121,7 @@ public static void TaskCancelWait57() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait58() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -1109,6 +1149,7 @@ public static void TaskCancelWait58() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait59() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1126,6 +1167,7 @@ public static void TaskCancelWait59() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait60() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning"); @@ -1143,6 +1185,7 @@ public static void TaskCancelWait60() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait61() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1167,6 +1210,7 @@ public static void TaskCancelWait61() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait62() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -1184,6 +1228,7 @@ public static void TaskCancelWait62() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait63() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1211,6 +1256,7 @@ public static void TaskCancelWait63() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait64() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1235,6 +1281,7 @@ public static void TaskCancelWait64() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait65() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -1258,6 +1305,7 @@ public static void TaskCancelWait65() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait66() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1281,6 +1329,7 @@ public static void TaskCancelWait66() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait67() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1293,6 +1342,7 @@ public static void TaskCancelWait67() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait68() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1316,6 +1366,7 @@ public static void TaskCancelWait68() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait69() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "None"); @@ -1331,6 +1382,7 @@ public static void TaskCancelWait69() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait70() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1358,6 +1410,7 @@ public static void TaskCancelWait70() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait71() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1381,6 +1434,7 @@ public static void TaskCancelWait71() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait72() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -1405,6 +1459,7 @@ public static void TaskCancelWait72() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait73() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1432,6 +1487,7 @@ public static void TaskCancelWait73() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait74() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -1449,6 +1505,7 @@ public static void TaskCancelWait74() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait75() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning"); @@ -1466,6 +1523,7 @@ public static void TaskCancelWait75() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait76() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1478,6 +1536,7 @@ public static void TaskCancelWait76() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait77() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "None"); @@ -1502,6 +1561,7 @@ public static void TaskCancelWait77() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait78() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -1525,6 +1585,7 @@ public static void TaskCancelWait78() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait79() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1549,6 +1610,7 @@ public static void TaskCancelWait79() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait80() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, AttachedToParent"); @@ -1561,6 +1623,7 @@ public static void TaskCancelWait80() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait81() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1585,6 +1648,7 @@ public static void TaskCancelWait81() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait82() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -1608,6 +1672,7 @@ public static void TaskCancelWait82() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait83() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1625,6 +1690,7 @@ public static void TaskCancelWait83() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait84() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -1637,6 +1703,7 @@ public static void TaskCancelWait84() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait85() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1652,6 +1719,7 @@ public static void TaskCancelWait85() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait86() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -1679,6 +1747,7 @@ public static void TaskCancelWait86() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait87() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -1691,6 +1760,7 @@ public static void TaskCancelWait87() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait88() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -1706,6 +1776,7 @@ public static void TaskCancelWait88() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait89() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -1721,6 +1792,7 @@ public static void TaskCancelWait89() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait90() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1748,6 +1820,7 @@ public static void TaskCancelWait90() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait91() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -1765,6 +1838,7 @@ public static void TaskCancelWait91() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait92() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -1782,6 +1856,7 @@ public static void TaskCancelWait92() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait93() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -1799,6 +1874,7 @@ public static void TaskCancelWait93() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait94() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1816,6 +1892,7 @@ public static void TaskCancelWait94() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait95() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "AttachedToParent"); @@ -1828,6 +1905,7 @@ public static void TaskCancelWait95() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait96() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -1852,6 +1930,7 @@ public static void TaskCancelWait96() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait97() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1879,6 +1958,7 @@ public static void TaskCancelWait97() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait98() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1891,6 +1971,7 @@ public static void TaskCancelWait98() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait99() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -1906,6 +1987,7 @@ public static void TaskCancelWait99() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait100() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -1929,6 +2011,7 @@ public static void TaskCancelWait100() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait101() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1946,6 +2029,7 @@ public static void TaskCancelWait101() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait102() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -1970,6 +2054,7 @@ public static void TaskCancelWait102() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait103() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -1993,6 +2078,7 @@ public static void TaskCancelWait103() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait104() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2008,6 +2094,7 @@ public static void TaskCancelWait104() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait105() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -2020,6 +2107,7 @@ public static void TaskCancelWait105() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait106() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -2043,6 +2131,7 @@ public static void TaskCancelWait106() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait107() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2067,6 +2156,7 @@ public static void TaskCancelWait107() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait108() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -2094,6 +2184,7 @@ public static void TaskCancelWait108() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait109() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -2121,6 +2212,7 @@ public static void TaskCancelWait109() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait110() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2136,6 +2228,7 @@ public static void TaskCancelWait110() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait111() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "None"); @@ -2159,6 +2252,7 @@ public static void TaskCancelWait111() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait112() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -2182,6 +2276,7 @@ public static void TaskCancelWait112() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait113() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2197,6 +2292,7 @@ public static void TaskCancelWait113() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait114() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -2214,6 +2310,7 @@ public static void TaskCancelWait114() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait115() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2226,6 +2323,7 @@ public static void TaskCancelWait115() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait116() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -2250,6 +2348,7 @@ public static void TaskCancelWait116() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait117() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -2277,6 +2376,7 @@ public static void TaskCancelWait117() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait118() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -2301,6 +2401,7 @@ public static void TaskCancelWait118() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait119() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -2328,6 +2429,7 @@ public static void TaskCancelWait119() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait120() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -2340,6 +2442,7 @@ public static void TaskCancelWait120() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait121() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2357,6 +2460,7 @@ public static void TaskCancelWait121() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait122() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, AttachedToParent"); @@ -2372,6 +2476,7 @@ public static void TaskCancelWait122() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait123() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -2389,6 +2494,7 @@ public static void TaskCancelWait123() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait124() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -2401,6 +2507,7 @@ public static void TaskCancelWait124() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait125() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2416,6 +2523,7 @@ public static void TaskCancelWait125() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait126() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -2433,6 +2541,7 @@ public static void TaskCancelWait126() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait127() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2456,6 +2565,7 @@ public static void TaskCancelWait127() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait128() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -2479,6 +2589,7 @@ public static void TaskCancelWait128() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait129() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -2506,6 +2617,7 @@ public static void TaskCancelWait129() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait130() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "AttachedToParent"); @@ -2533,6 +2645,7 @@ public static void TaskCancelWait130() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait131() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -2556,6 +2669,7 @@ public static void TaskCancelWait131() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait132() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2571,6 +2685,7 @@ public static void TaskCancelWait132() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait133() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -2598,6 +2713,7 @@ public static void TaskCancelWait133() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait134() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2610,6 +2726,7 @@ public static void TaskCancelWait134() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait135() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning"); @@ -2634,6 +2751,7 @@ public static void TaskCancelWait135() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait136() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -2658,6 +2776,7 @@ public static void TaskCancelWait136() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait137() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2675,6 +2794,7 @@ public static void TaskCancelWait137() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait138() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "None"); @@ -2698,6 +2818,7 @@ public static void TaskCancelWait138() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait139() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -2722,6 +2843,7 @@ public static void TaskCancelWait139() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait140() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -2737,6 +2859,7 @@ public static void TaskCancelWait140() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait141() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs index 3b6761d3ece8b1..715ed5d60d4085 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs @@ -803,6 +803,7 @@ public static void TaskContinueWithAllAnyTest1() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest2() { TaskInfo node1 = new TaskInfo(WorkloadType.Light); @@ -819,6 +820,7 @@ public static void TaskContinueWithAllAnyTest2() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest3() { TaskInfo node1 = new TaskInfo(WorkloadType.Heavy); @@ -844,6 +846,7 @@ public static void TaskContinueWithAllAnyTest4() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest5() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -873,6 +876,7 @@ public static void TaskContinueWithAllAnyTest6() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest7() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -900,6 +904,7 @@ public static void TaskContinueWithAllAnyTest8() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest9() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -914,6 +919,7 @@ public static void TaskContinueWithAllAnyTest9() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest10() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -930,6 +936,7 @@ public static void TaskContinueWithAllAnyTest10() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest11() { TaskInfo node1 = new TaskInfo(WorkloadType.Exceptional); @@ -970,6 +977,7 @@ public static void TaskContinueWithAllAnyTest13() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest14() { TaskInfo node1 = new TaskInfo(WorkloadType.Light); @@ -1010,6 +1018,7 @@ public static void TaskContinueWithAllAnyTest16() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest17() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1074,6 +1083,7 @@ public static void TaskContinueWithAllAnyTest21() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest22() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1101,6 +1111,7 @@ public static void TaskContinueWithAllAnyTest23() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest24() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1128,6 +1139,7 @@ public static void TaskContinueWithAllAnyTest25() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest26() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1166,6 +1178,7 @@ public static void TaskContinueWithAllAnyTest27() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest28() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1187,6 +1200,7 @@ public static void TaskContinueWithAllAnyTest28() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest29() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1208,6 +1222,7 @@ public static void TaskContinueWithAllAnyTest29() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest30() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1312,6 +1327,7 @@ public static void TaskContinueWithAllAnyTest37() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest38() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1325,6 +1341,7 @@ public static void TaskContinueWithAllAnyTest38() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest39() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs index a66fe871f9d8cc..6bbf000c13a903 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs @@ -14,6 +14,7 @@ public static class TaskRtTests { [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunRunTests() { // @@ -130,6 +131,7 @@ public static void RunRunTests() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunRunTests_Cancellation_Negative() { CancellationTokenSource cts = new CancellationTokenSource(); 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..957eb4fda0c26c 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests_Core.cs @@ -1336,6 +1336,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] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunTaskWaitAllTests() { Assert.Throws(() => Task.WaitAll((Task[])null)); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs index 4a25bf774fd833..1e3be371bd5be4 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs @@ -434,6 +434,7 @@ public static void TaskRunSyncTest2() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest3() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Completed, PostRunSyncAction.Wait, WorkloadType.CreateChildTask, TaskCreationOptions.None, TaskSchedulerType.CustomWithInlineExecution); @@ -525,6 +526,7 @@ public static void TaskRunSyncTest14() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest15() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.ContinueInside, TaskCreationOptions.None, TaskSchedulerType.CustomWithInlineExecution); @@ -542,6 +544,7 @@ public static void TaskRunSyncTest16() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest17() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.CreateDetachedChildTask, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithInlineExecution); @@ -551,6 +554,7 @@ public static void TaskRunSyncTest17() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest18() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.RunWithUserScheduler, TaskCreationOptions.LongRunning, TaskSchedulerType.CustomWithInlineExecution); @@ -559,6 +563,7 @@ public static void TaskRunSyncTest18() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest19() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.ThrowException, TaskCreationOptions.LongRunning, TaskSchedulerType.CustomWithoutInlineExecution); @@ -568,6 +573,7 @@ public static void TaskRunSyncTest19() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest20() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.ContinueInside, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithoutInlineExecution); @@ -592,6 +598,7 @@ public static void TaskRunSyncTest22() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest23() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.RunWithUserScheduler, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithoutInlineExecution); @@ -600,6 +607,7 @@ public static void TaskRunSyncTest23() } [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest24() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.ThrowException, TaskCreationOptions.None, TaskSchedulerType.Default); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs index 7c3a38668a0db2..e744eee3e429fd 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs @@ -432,6 +432,7 @@ public static void TaskStatus1() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus2() { TestParameters parameters = new TestParameters(TestAction.CompletedTask) @@ -444,6 +445,7 @@ public static void TaskStatus2() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus3() { TestParameters parameters = new TestParameters(TestAction.CompletedTask) @@ -505,6 +507,7 @@ public static void TaskStatus7() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus8() { TestParameters parameters = new TestParameters(TestAction.CancelTask) @@ -517,6 +520,7 @@ public static void TaskStatus8() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus9() { TestParameters parameters = new TestParameters(TestAction.CancelTask) @@ -557,6 +561,7 @@ public static void TaskStatus11() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus12() { TestParameters parameters = new TestParameters(TestAction.FailedTask) @@ -572,6 +577,7 @@ public static void TaskStatus12() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus13() { TestParameters parameters = new TestParameters(TestAction.FailedTask) @@ -613,6 +619,7 @@ public static void TaskStatus15() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus16() { TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge) diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs index c028d596b216da..ba2034db71219f 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs @@ -453,6 +453,7 @@ public sealed class TaskWaitAllAny { [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny0() { TaskInfo node1 = new TaskInfo(WorkloadType.Heavy); @@ -506,6 +507,7 @@ public static void TaskWaitAllAny4() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny5() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -533,6 +535,7 @@ public static void TaskWaitAllAny6() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny7() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -809,6 +812,7 @@ public static void TaskWaitAllAny30() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny31() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -894,6 +898,7 @@ public static void TaskWaitAllAny32() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny33() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryLight); @@ -905,6 +910,7 @@ public static void TaskWaitAllAny33() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny34() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -942,6 +948,7 @@ public static void TaskWaitAllAny36() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny37() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1030,6 +1037,7 @@ public static void TaskWaitAllAny44() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny45() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); diff --git a/src/libraries/System.Threading/tests/BarrierTests.cs b/src/libraries/System.Threading/tests/BarrierTests.cs index 199de37156b618..54056f731d287a 100644 --- a/src/libraries/System.Threading/tests/BarrierTests.cs +++ b/src/libraries/System.Threading/tests/BarrierTests.cs @@ -373,6 +373,7 @@ public static void RunBarrierTest9_PostPhaseException() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunBarrierTest10a() { // Regression test for Barrier race condition diff --git a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs index 2905dbeceb7f65..30ee6f08ffb07b 100644 --- a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs +++ b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs @@ -382,6 +382,7 @@ public static void WriterToUpgradeableReaderChain() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void ReleaseReadersWhenWaitingWriterTimesOut() { using (var rwls = new ReaderWriterLockSlim()) @@ -451,6 +452,7 @@ public static void ReleaseReadersWhenWaitingWriterTimesOut() [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void DontReleaseWaitingReadersWhenThereAreWaitingWriters() { using(var rwls = new ReaderWriterLockSlim()) diff --git a/src/libraries/System.Threading/tests/SpinLockTests.cs b/src/libraries/System.Threading/tests/SpinLockTests.cs index 5c0ca50420e881..470e52ef044db2 100644 --- a/src/libraries/System.Threading/tests/SpinLockTests.cs +++ b/src/libraries/System.Threading/tests/SpinLockTests.cs @@ -76,6 +76,7 @@ public static void RunSpinLockTests_NegativeTests() [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest0_Enter(int threadsCount, bool enableThreadIDs) { // threads array @@ -146,6 +147,7 @@ public static void RunSpinLockTest0_Enter(int threadsCount, bool enableThreadIDs [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest1_TryEnter(int threadsCount, bool enableThreadIDs) { for (int j = 0; j < 2; j++) @@ -200,6 +202,7 @@ public static void RunSpinLockTest1_TryEnter(int threadsCount, bool enableThread [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest2_TryEnter(int threadsCount, bool enableThreadIDs) { for (int j = 0; j < 2; j++) 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..44a703fc4003f2 100644 --- a/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs +++ b/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs @@ -165,6 +165,7 @@ public void Run(CloneType cloneType, IsolationLevel isoLevel, bool forcePromote, [InlineData(CloneType.BlockingDependent, IsolationLevel.Snapshot, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.Chaos, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.Unspecified, false, TransactionStatus.Aborted)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void RunOuterLoop(CloneType cloneType, IsolationLevel isoLevel, bool forcePromote, TransactionStatus expectedStatus) { Run(cloneType, isoLevel, forcePromote, expectedStatus); diff --git a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs index a4d2e01e77f6d1..45454665c57865 100644 --- a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs +++ b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs @@ -2151,6 +2151,7 @@ public void PSPENonMsdtcAbortingCloneNotCompleted(bool promote) [Theory] [InlineData(false)] [InlineData(true)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) { // Blocking clone that isn't completed before commit @@ -2164,6 +2165,7 @@ public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) [Theory] [InlineData(false)] [InlineData(true)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void PSPENonMsdtcTimeout(bool promote) { // tx timeout diff --git a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs index 5a3e93bd329354..0bbe869cb0f183 100644 --- a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs +++ b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs @@ -507,6 +507,7 @@ public void RMFail1() [Fact] [OuterLoop] // 30 second timeout + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void RMFail2() { IntResourceManager irm = new IntResourceManager(1); From 1c14a9344a41a0d3aaf9a5c76056126aa0cc820c Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 10:09:48 +0100 Subject: [PATCH 02/21] System.Collections.NonGeneric.Tests passing --- .../System.Collections.NonGeneric/tests/HashtableTests.cs | 2 ++ .../System.Collections.NonGeneric/tests/SortedListTests.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs index aea1086d0d58e2..cb1deb0fc01d34 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs @@ -1009,6 +1009,7 @@ public class Hashtable_ItemThreadSafetyTests [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void GetItem_ThreadSafety() { int i1 = 0x10; @@ -1102,6 +1103,7 @@ public class Hashtable_SynchronizedTests [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void SynchronizedThreadSafety() { const int NumberOfWorkers = 3; diff --git a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs index 8125d6a014a88b..688a8dd2e0ca1e 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs @@ -1539,6 +1539,7 @@ public class SortedList_SyncRootTests [Fact] [OuterLoop] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void GetSyncRootBasic() { // Testing SyncRoot is not as simple as its implementation looks like. This is the working From 78532f7c1c6e15701a4e4c627f847203ce3ab00c Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 10:12:25 +0100 Subject: [PATCH 03/21] System.Console.Tests passing --- src/libraries/System.Console/tests/WindowAndCursorProps.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Console/tests/WindowAndCursorProps.cs b/src/libraries/System.Console/tests/WindowAndCursorProps.cs index 07309799a7549b..1e9e3b86370048 100644 --- a/src/libraries/System.Console/tests/WindowAndCursorProps.cs +++ b/src/libraries/System.Console/tests/WindowAndCursorProps.cs @@ -278,6 +278,7 @@ public static void Title_SetNull_ThrowsArgumentNullException() [Fact] [OuterLoop] // makes noise, not very inner-loop friendly + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void Beep_Invoke_Success() { // Nothing to verify; just run the code. From 6cb3df0304efb445d165a018c87434e806fdb52c Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 10:15:51 +0100 Subject: [PATCH 04/21] System.Diagnostics.DiagnosticSource.Tests passing --- .../tests/DiagnosticSourceTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs index d09d45e484148c..f5e4623cd6ba4b 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs @@ -506,6 +506,7 @@ public void AllListenersCheckCatchupList() [InlineData(100, 102)] [InlineData(100, 103)] [InlineData(100, 104)] + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void AllSubscriberStress(int numThreads, int numListenersPerThread) { // No listeners have been created yet From 1c7978b631db776141334a3f5f2aa94b4811c0fa Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 10:31:12 +0100 Subject: [PATCH 05/21] System.Globalization.Tests passing - See active issue https://github.com/dotnet/runtime/issues/45951 --- .../tests/System/Globalization/RegionInfoTests.cs | 1 + 1 file changed, 1 insertion(+) 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))) From fdb4affc5e981cdaba64dbf7c4a9d473245aeb5b Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 10:53:30 +0100 Subject: [PATCH 06/21] System.IO.FileSystem.Tests passing after deactivating test cannot wait on monitors on this runtime. --- .../System.IO.FileSystem/tests/FileStream/WriteAsync.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs index 170a890d79cb7e..d9995c7ce44957 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs @@ -195,6 +195,7 @@ public Task ManyConcurrentWriteAsyncs() [Theory] [MemberData(nameof(MemberData_FileStreamAsyncWriting))] [OuterLoop] // many combinations: we test just one in inner loop and the rest outer + [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public async Task ManyConcurrentWriteAsyncs_OuterLoop( bool useAsync, bool presize, bool exposeHandle, bool cancelable, int bufferSize, int writeSize, int numWrites) { From ebc37f900c02fe70eaae9c1d569e048726b8baa0 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 11:01:09 +0100 Subject: [PATCH 07/21] System.IO.FileSystem.Tests passing - See active issue: https://github.com/dotnet/runtime/issues/45954 --- .../System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs | 1 + .../System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs | 1 + 2 files changed, 2 insertions(+) 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(); From c391f025ce08c5947fa88a67582fc251c73d3608 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 11 Dec 2020 12:12:23 +0100 Subject: [PATCH 08/21] Remove fat fingered code. --- src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs b/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs index 74343fe703f1f4..32780301a3644b 100644 --- a/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs +++ b/src/libraries/System.Net.WebSockets.Client/tests/CancelTest.cs @@ -6,7 +6,7 @@ using Xunit; using Xunit.Abstractions; -[PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. + namespace System.Net.WebSockets.Client.Tests { public class CancelTest : ClientWebSocketTestBase From cafa12c2faf774b85af51362f46e7b8465d95da2 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Mon, 4 Jan 2021 07:14:11 +0100 Subject: [PATCH 09/21] Threads not supported on Browser --- src/libraries/System.Linq.Expressions/tests/CompilerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); From 5ad52deaa9db19e485174ad4343036540da03e67 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Mon, 4 Jan 2021 07:18:26 +0100 Subject: [PATCH 10/21] Browser does not support monitor --- .../System.Security.SecureString/tests/SecureStringTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) From 212103bf9b40c3c7e8a1fd32891f8dc24c9e52b5 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Mon, 4 Jan 2021 07:28:06 +0100 Subject: [PATCH 11/21] Browser does not support monitor --- .../tests/Dataflow/DataflowBlockExtensionTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..fb320e6fbd85dd 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs @@ -1004,7 +1004,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() { From ce8b63712eb342b2e1127732269406d609d84d97 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Mon, 4 Jan 2021 11:32:13 +0100 Subject: [PATCH 12/21] Browser does not support wait on monitors --- src/libraries/Common/tests/Tests/System/StringTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { From 090ff91af364ad545a42a955dbcf7a233e897a0f Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 07:32:41 +0100 Subject: [PATCH 13/21] Browser does not support wait on monitors --- .../tests/Dataflow/ConcurrentTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { From d558278a33783f9b4219f7bd98d55b9dd0c9a67d Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 07:52:33 +0100 Subject: [PATCH 14/21] Add ActiveIssue for DataFlow tests TestNullTarget_CompletionNoCaching --- .../tests/Dataflow/DataflowBlockExtensionTests.cs | 1 + 1 file changed, 1 insertion(+) 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 fb320e6fbd85dd..358588455ad508 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 From aa0d0ece2d939b319ce645e856726d0da8147dfa Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 08:02:37 +0100 Subject: [PATCH 15/21] Add ActiveIssue for DataFlow tests --- .../tests/Dataflow/TransformBlockTests.cs | 2 +- .../tests/Dataflow/TransformManyBlockTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { From cb1266b5283d769fb51177b0d3a18696fa2d7223 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 08:06:18 +0100 Subject: [PATCH 16/21] Add ActiveIssue for DataFlow tests --- .../tests/Dataflow/DataflowBlockExtensionTests.cs | 1 + 1 file changed, 1 insertion(+) 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 358588455ad508..be3d0060b45dee 100644 --- a/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs +++ b/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs @@ -344,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; From 0727dd479879b881633e090c793e01f3dfc2f145 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 10:19:22 +0100 Subject: [PATCH 17/21] Add threading support conditional --- .../System.Threading.Timer/tests/TimerFiringTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })] From c53114abe62360233e5754f9339bbcae1a7e2f60 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Tue, 5 Jan 2021 15:40:41 +0100 Subject: [PATCH 18/21] Change all Cannot wait on monitors on this runtime Browser platform checks to [ConditionalXXXX(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] As was suggested in comments --- .../tests/BlockingCollectionTests.cs | 3 +- .../ConcurrentDictionaryTests.cs | 3 +- .../tests/ProducerConsumerCollectionTests.cs | 3 +- .../tests/HashtableTests.cs | 6 +- .../tests/SortedListTests.cs | 3 +- .../tests/WindowAndCursorProps.cs | 3 +- .../tests/FileStream/WriteAsync.cs | 3 +- .../tests/CancellationTokenTests.cs | 3 +- .../tests/Task/TaskAPMTest.cs | 6 +- .../tests/Task/TaskCancelWaitTests.cs | 369 ++++++------------ .../tests/Task/TaskContinueWithAllAnyTests.cs | 51 +-- .../tests/Task/TaskRtTests.cs | 6 +- .../tests/Task/TaskRtTests_Core.cs | 3 +- .../tests/Task/TaskRunSyncTests.cs | 24 +- .../tests/Task/TaskStatusTest.cs | 21 +- .../tests/Task/TaskWaitAllAnyTest.cs | 26 +- .../System.Threading/tests/BarrierTests.cs | 3 +- .../tests/ReaderWriterLockSlimTests.cs | 6 +- .../System.Threading/tests/SpinLockTests.cs | 9 +- 19 files changed, 184 insertions(+), 367 deletions(-) diff --git a/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs index 7c7dad91e7cfc5..cb18979ec407de 100644 --- a/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/BlockingCollectionTests.cs @@ -741,10 +741,9 @@ 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] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. private static void TestConcurrentAddAnyTakeAny(int numOfThreads, int numOfElementsPerThread, int numOfCollections, int boundOfCollections) { //If numOfThreads is not an even number, make it even. diff --git a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs index a41ada698c0580..e466a37f920d7a 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs @@ -1032,8 +1032,7 @@ public static void TestTryUpdate() } [OuterLoop("Runs for several seconds")] - [Fact] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. + [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 5d1fb3ceda28d7..f94c4a758fd8f9 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs @@ -735,9 +735,8 @@ public void ManyConcurrentAddsTakes_EnsureTrackedCountsMatchResultingCollection( } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void ManyConcurrentAddsTakes_CollectionRemainsConsistent() { IProducerConsumerCollection c = CreateProducerConsumerCollection(); diff --git a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs index cb1deb0fc01d34..e50fd1a3c38582 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/HashtableTests.cs @@ -1007,9 +1007,8 @@ public class Hashtable_ItemThreadSafetyTests private const int MAX_TEST_TIME_MS = 10000; // 10 seconds - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void GetItem_ThreadSafety() { int i1 = 0x10; @@ -1101,9 +1100,8 @@ public class Hashtable_SynchronizedTests private Hashtable _hash2; private int _iNumberOfElements = 20; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void SynchronizedThreadSafety() { const int NumberOfWorkers = 3; diff --git a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs index 688a8dd2e0ca1e..aa7c8f9ec1b17e 100644 --- a/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs +++ b/src/libraries/System.Collections.NonGeneric/tests/SortedListTests.cs @@ -1537,9 +1537,8 @@ public class SortedList_SyncRootTests private SortedList _sortListGrandDaughter; private const int NumberOfElements = 100; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void GetSyncRootBasic() { // Testing SyncRoot is not as simple as its implementation looks like. This is the working diff --git a/src/libraries/System.Console/tests/WindowAndCursorProps.cs b/src/libraries/System.Console/tests/WindowAndCursorProps.cs index 1e9e3b86370048..1da4ce47340ab6 100644 --- a/src/libraries/System.Console/tests/WindowAndCursorProps.cs +++ b/src/libraries/System.Console/tests/WindowAndCursorProps.cs @@ -276,9 +276,8 @@ 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 - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void Beep_Invoke_Success() { // Nothing to verify; just run the code. diff --git a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs index d9995c7ce44957..6ed4d1db2c4cc6 100644 --- a/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs +++ b/src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs @@ -192,10 +192,9 @@ 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 - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public async Task ManyConcurrentWriteAsyncs_OuterLoop( bool useAsync, bool presize, bool exposeHandle, bool cancelable, int bufferSize, int writeSize, int numWrites) { diff --git a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs index 503a90e6879dfc..8ba430cbbe5f08 100644 --- a/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs @@ -1469,8 +1469,7 @@ public static async Task CancellationTokenRegistration_ConcurrentUnregisterWithC } [OuterLoop("Runs for several seconds")] - [Fact] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. + [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 575102d453ca24..a140578160d97f 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskAPMTest.cs @@ -42,11 +42,10 @@ public sealed class TaskAPMTests : IDisposable /// private const int LongTaskMilliseconds = 100; - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] [InlineData(true)] [InlineData(false)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void WaitUntilCompleteTechnique(bool hasReturnType) { _hasReturnType = hasReturnType; @@ -111,11 +110,10 @@ 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)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void CallbackTechnique(bool hasReturnType) { _hasReturnType = hasReturnType; diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs index 42a5e67775b964..68f74885dae12d 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskCancelWaitTests.cs @@ -72,9 +72,8 @@ public static void TaskCancelWait4() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait5() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -107,9 +106,8 @@ public static void TaskCancelWait6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait7() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -188,9 +186,8 @@ public static void TaskCancelWait10() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait11() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -229,9 +226,8 @@ public static void TaskCancelWait12() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait13() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -266,9 +262,8 @@ public static void TaskCancelWait14() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait15() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -321,9 +316,8 @@ public static void TaskCancelWait17() TaskCancelWaitTest test = new TaskCancelWaitTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait18() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -359,9 +353,8 @@ public static void TaskCancelWait19() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait20() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -472,9 +465,8 @@ public static void TaskCancelWait25() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait26() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -488,9 +480,8 @@ public static void TaskCancelWait26() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait27() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -512,9 +503,8 @@ public static void TaskCancelWait27() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait28() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -540,9 +530,8 @@ public static void TaskCancelWait28() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait29() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -558,9 +547,8 @@ public static void TaskCancelWait29() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait30() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -583,9 +571,8 @@ public static void TaskCancelWait30() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait31() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -596,9 +583,8 @@ public static void TaskCancelWait31() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait32() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -609,9 +595,8 @@ public static void TaskCancelWait32() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait33() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -633,9 +618,8 @@ public static void TaskCancelWait33() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait34() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -658,9 +642,8 @@ public static void TaskCancelWait34() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait35() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -674,9 +657,8 @@ public static void TaskCancelWait35() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait36() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -702,9 +684,8 @@ public static void TaskCancelWait36() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait37() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -720,9 +701,8 @@ public static void TaskCancelWait37() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait38() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -733,9 +713,8 @@ public static void TaskCancelWait38() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait39() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -751,9 +730,8 @@ public static void TaskCancelWait39() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait40() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -776,9 +754,8 @@ public static void TaskCancelWait40() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait41() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -804,9 +781,8 @@ public static void TaskCancelWait41() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait42() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -820,9 +796,8 @@ public static void TaskCancelWait42() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait43() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -844,9 +819,8 @@ public static void TaskCancelWait43() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait44() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -857,9 +831,8 @@ public static void TaskCancelWait44() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait45() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -882,9 +855,8 @@ public static void TaskCancelWait45() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait46() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -898,9 +870,8 @@ public static void TaskCancelWait46() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait47() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -922,9 +893,8 @@ public static void TaskCancelWait47() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait48() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -946,9 +916,8 @@ public static void TaskCancelWait48() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait49() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -959,9 +928,8 @@ public static void TaskCancelWait49() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait50() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -984,9 +952,8 @@ public static void TaskCancelWait50() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait51() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -1000,9 +967,8 @@ public static void TaskCancelWait51() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait52() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -1028,9 +994,8 @@ public static void TaskCancelWait52() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait53() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -1044,9 +1009,8 @@ public static void TaskCancelWait53() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait54() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -1072,9 +1036,8 @@ public static void TaskCancelWait54() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait55() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1085,9 +1048,8 @@ public static void TaskCancelWait55() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait56() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -1103,9 +1065,8 @@ public static void TaskCancelWait56() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait57() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -1119,9 +1080,8 @@ public static void TaskCancelWait57() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait58() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -1147,9 +1107,8 @@ public static void TaskCancelWait58() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait59() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1165,9 +1124,8 @@ public static void TaskCancelWait59() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait60() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning"); @@ -1183,9 +1141,8 @@ public static void TaskCancelWait60() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait61() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1208,9 +1165,8 @@ public static void TaskCancelWait61() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait62() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -1226,9 +1182,8 @@ public static void TaskCancelWait62() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait63() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1254,9 +1209,8 @@ public static void TaskCancelWait63() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait64() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1279,9 +1233,8 @@ public static void TaskCancelWait64() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait65() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -1303,9 +1256,8 @@ public static void TaskCancelWait65() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait66() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1327,9 +1279,8 @@ public static void TaskCancelWait66() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait67() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1340,9 +1291,8 @@ public static void TaskCancelWait67() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait68() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1364,9 +1314,8 @@ public static void TaskCancelWait68() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait69() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "None"); @@ -1380,9 +1329,8 @@ public static void TaskCancelWait69() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait70() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -1408,9 +1356,8 @@ public static void TaskCancelWait70() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait71() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -1432,9 +1379,8 @@ public static void TaskCancelWait71() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait72() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -1457,9 +1403,8 @@ public static void TaskCancelWait72() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait73() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1485,9 +1430,8 @@ public static void TaskCancelWait73() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait74() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -1503,9 +1447,8 @@ public static void TaskCancelWait74() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait75() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning"); @@ -1521,9 +1464,8 @@ public static void TaskCancelWait75() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait76() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1534,9 +1476,8 @@ public static void TaskCancelWait76() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait77() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "None"); @@ -1559,9 +1500,8 @@ public static void TaskCancelWait77() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait78() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -1583,9 +1523,8 @@ public static void TaskCancelWait78() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait79() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1608,9 +1547,8 @@ public static void TaskCancelWait79() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait80() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, AttachedToParent"); @@ -1621,9 +1559,8 @@ public static void TaskCancelWait80() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait81() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1646,9 +1583,8 @@ public static void TaskCancelWait81() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait82() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "None"); @@ -1670,9 +1606,8 @@ public static void TaskCancelWait82() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait83() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -1688,9 +1623,8 @@ public static void TaskCancelWait83() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait84() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning"); @@ -1701,9 +1635,8 @@ public static void TaskCancelWait84() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait85() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -1717,9 +1650,8 @@ public static void TaskCancelWait85() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait86() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -1745,9 +1677,8 @@ public static void TaskCancelWait86() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait87() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -1758,9 +1689,8 @@ public static void TaskCancelWait87() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait88() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -1774,9 +1704,8 @@ public static void TaskCancelWait88() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait89() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -1790,9 +1719,8 @@ public static void TaskCancelWait89() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait90() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1818,9 +1746,8 @@ public static void TaskCancelWait90() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait91() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning"); @@ -1836,9 +1763,8 @@ public static void TaskCancelWait91() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait92() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -1854,9 +1780,8 @@ public static void TaskCancelWait92() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait93() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -1872,9 +1797,8 @@ public static void TaskCancelWait93() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait94() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1890,9 +1814,8 @@ public static void TaskCancelWait94() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait95() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "AttachedToParent"); @@ -1903,9 +1826,8 @@ public static void TaskCancelWait95() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait96() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -1928,9 +1850,8 @@ public static void TaskCancelWait96() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait97() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -1956,9 +1877,8 @@ public static void TaskCancelWait97() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait98() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -1969,9 +1889,8 @@ public static void TaskCancelWait98() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait99() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -1985,9 +1904,8 @@ public static void TaskCancelWait99() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait100() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -2009,9 +1927,8 @@ public static void TaskCancelWait100() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait101() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -2027,9 +1944,8 @@ public static void TaskCancelWait101() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait102() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -2052,9 +1968,8 @@ public static void TaskCancelWait102() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait103() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, AttachedToParent"); @@ -2076,9 +1991,8 @@ public static void TaskCancelWait103() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait104() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2092,9 +2006,8 @@ public static void TaskCancelWait104() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait105() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -2105,9 +2018,8 @@ public static void TaskCancelWait105() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait106() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, RespectParentCancellation"); @@ -2129,9 +2041,8 @@ public static void TaskCancelWait106() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait107() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2154,9 +2065,8 @@ public static void TaskCancelWait107() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait108() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -2182,9 +2092,8 @@ public static void TaskCancelWait108() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait109() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -2210,9 +2119,8 @@ public static void TaskCancelWait109() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait110() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2226,9 +2134,8 @@ public static void TaskCancelWait110() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait111() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "None"); @@ -2250,9 +2157,8 @@ public static void TaskCancelWait111() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait112() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -2274,9 +2180,8 @@ public static void TaskCancelWait112() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait113() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2290,9 +2195,8 @@ public static void TaskCancelWait113() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait114() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, RespectParentCancellation"); @@ -2308,9 +2212,8 @@ public static void TaskCancelWait114() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait115() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2321,9 +2224,8 @@ public static void TaskCancelWait115() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait116() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "AttachedToParent"); @@ -2346,9 +2248,8 @@ public static void TaskCancelWait116() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait117() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -2374,9 +2275,8 @@ public static void TaskCancelWait117() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait118() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "AttachedToParent"); @@ -2399,9 +2299,8 @@ public static void TaskCancelWait118() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait119() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning"); @@ -2427,9 +2326,8 @@ public static void TaskCancelWait119() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait120() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, RespectParentCancellation"); @@ -2440,9 +2338,8 @@ public static void TaskCancelWait120() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait121() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2458,9 +2355,8 @@ public static void TaskCancelWait121() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait122() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "LongRunning, AttachedToParent"); @@ -2474,9 +2370,8 @@ public static void TaskCancelWait122() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait123() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -2492,9 +2387,8 @@ public static void TaskCancelWait123() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait124() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "None"); @@ -2505,9 +2399,8 @@ public static void TaskCancelWait124() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait125() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); @@ -2521,9 +2414,8 @@ public static void TaskCancelWait125() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait126() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "AttachedToParent"); @@ -2539,9 +2431,8 @@ public static void TaskCancelWait126() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait127() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2563,9 +2454,8 @@ public static void TaskCancelWait127() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait128() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "RespectParentCancellation"); @@ -2587,9 +2477,8 @@ public static void TaskCancelWait128() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait129() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "LongRunning, AttachedToParent"); @@ -2615,9 +2504,8 @@ public static void TaskCancelWait129() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait130() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "AttachedToParent"); @@ -2643,9 +2531,8 @@ public static void TaskCancelWait130() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait131() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -2667,9 +2554,8 @@ public static void TaskCancelWait131() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait132() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning, AttachedToParent"); @@ -2683,9 +2569,8 @@ public static void TaskCancelWait132() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait133() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "RespectParentCancellation"); @@ -2711,9 +2596,8 @@ public static void TaskCancelWait133() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait134() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2724,9 +2608,8 @@ public static void TaskCancelWait134() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait135() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "LongRunning"); @@ -2749,9 +2632,8 @@ public static void TaskCancelWait135() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait136() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryHeavy, "LongRunning, RespectParentCancellation"); @@ -2774,9 +2656,8 @@ public static void TaskCancelWait136() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait137() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "RespectParentCancellation"); @@ -2792,9 +2673,8 @@ public static void TaskCancelWait137() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait138() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Light, "None"); @@ -2816,9 +2696,8 @@ public static void TaskCancelWait138() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait139() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.VeryLight, "RespectParentCancellation"); @@ -2841,9 +2720,8 @@ public static void TaskCancelWait139() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait140() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Medium, "RespectParentCancellation"); @@ -2857,9 +2735,8 @@ public static void TaskCancelWait140() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskCancelWait141() { TaskInfo node = new TaskInfo(null, "node", WorkloadType.Heavy, "LongRunning, RespectParentCancellation"); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs index 715ed5d60d4085..7ac4341cf04b66 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithAllAnyTests.cs @@ -801,9 +801,8 @@ public static void TaskContinueWithAllAnyTest1() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest2() { TaskInfo node1 = new TaskInfo(WorkloadType.Light); @@ -818,9 +817,8 @@ public static void TaskContinueWithAllAnyTest2() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest3() { TaskInfo node1 = new TaskInfo(WorkloadType.Heavy); @@ -844,9 +842,8 @@ public static void TaskContinueWithAllAnyTest4() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest5() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -874,9 +871,8 @@ public static void TaskContinueWithAllAnyTest6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest7() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -902,9 +898,8 @@ public static void TaskContinueWithAllAnyTest8() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest9() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -917,9 +912,8 @@ public static void TaskContinueWithAllAnyTest9() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest10() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -934,9 +928,8 @@ public static void TaskContinueWithAllAnyTest10() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest11() { TaskInfo node1 = new TaskInfo(WorkloadType.Exceptional); @@ -975,9 +968,8 @@ public static void TaskContinueWithAllAnyTest13() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest14() { TaskInfo node1 = new TaskInfo(WorkloadType.Light); @@ -1016,9 +1008,8 @@ public static void TaskContinueWithAllAnyTest16() } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest17() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1081,9 +1072,8 @@ public static void TaskContinueWithAllAnyTest21() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest22() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1109,9 +1099,8 @@ public static void TaskContinueWithAllAnyTest23() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest24() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1137,9 +1126,8 @@ public static void TaskContinueWithAllAnyTest25() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest26() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1176,9 +1164,8 @@ public static void TaskContinueWithAllAnyTest27() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest28() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1198,9 +1185,8 @@ public static void TaskContinueWithAllAnyTest28() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest29() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1220,9 +1206,8 @@ public static void TaskContinueWithAllAnyTest29() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest30() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1325,9 +1310,8 @@ public static void TaskContinueWithAllAnyTest37() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest38() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1339,9 +1323,8 @@ public static void TaskContinueWithAllAnyTest38() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskContinueWithAllAnyTest39() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs index 6bbf000c13a903..e763ae63a43d4e 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRtTests.cs @@ -12,9 +12,8 @@ namespace System.Threading.Tasks.Tests { public static class TaskRtTests { - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunRunTests() { // @@ -129,9 +128,8 @@ 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] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunRunTests_Cancellation_Negative() { CancellationTokenSource cts = new CancellationTokenSource(); 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 957eb4fda0c26c..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,9 +1334,8 @@ 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] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunTaskWaitAllTests() { Assert.Throws(() => Task.WaitAll((Task[])null)); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs index 1e3be371bd5be4..d85fe81ffac8fa 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskRunSyncTests.cs @@ -432,9 +432,8 @@ public static void TaskRunSyncTest2() TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest3() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Completed, PostRunSyncAction.Wait, WorkloadType.CreateChildTask, TaskCreationOptions.None, TaskSchedulerType.CustomWithInlineExecution); @@ -524,9 +523,8 @@ public static void TaskRunSyncTest14() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest15() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.ContinueInside, TaskCreationOptions.None, TaskSchedulerType.CustomWithInlineExecution); @@ -542,9 +540,8 @@ public static void TaskRunSyncTest16() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest17() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.CreateDetachedChildTask, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithInlineExecution); @@ -552,18 +549,16 @@ public static void TaskRunSyncTest17() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest18() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.RunWithUserScheduler, TaskCreationOptions.LongRunning, TaskSchedulerType.CustomWithInlineExecution); TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest19() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.ContinueWith, WorkloadType.ThrowException, TaskCreationOptions.LongRunning, TaskSchedulerType.CustomWithoutInlineExecution); @@ -571,9 +566,8 @@ public static void TaskRunSyncTest19() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest20() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.ContinueInside, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithoutInlineExecution); @@ -596,18 +590,16 @@ public static void TaskRunSyncTest22() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest23() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.RunWithUserScheduler, TaskCreationOptions.AttachedToParent, TaskSchedulerType.CustomWithoutInlineExecution); TaskRunSyncTest test = new TaskRunSyncTest(parameters); test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskRunSyncTest24() { TestParameters_RunSync parameters = new TestParameters_RunSync(PreTaskStatus.Created, PostRunSyncAction.Wait, WorkloadType.ThrowException, TaskCreationOptions.None, TaskSchedulerType.Default); diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs index e744eee3e429fd..8001e2da4b0339 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskStatusTest.cs @@ -430,9 +430,8 @@ public static void TaskStatus1() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus2() { TestParameters parameters = new TestParameters(TestAction.CompletedTask) @@ -443,9 +442,8 @@ public static void TaskStatus2() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus3() { TestParameters parameters = new TestParameters(TestAction.CompletedTask) @@ -505,9 +503,8 @@ public static void TaskStatus7() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus8() { TestParameters parameters = new TestParameters(TestAction.CancelTask) @@ -518,9 +515,8 @@ public static void TaskStatus8() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus9() { TestParameters parameters = new TestParameters(TestAction.CancelTask) @@ -559,9 +555,8 @@ public static void TaskStatus11() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus12() { TestParameters parameters = new TestParameters(TestAction.FailedTask) @@ -575,9 +570,8 @@ public static void TaskStatus12() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus13() { TestParameters parameters = new TestParameters(TestAction.FailedTask) @@ -617,9 +611,8 @@ public static void TaskStatus15() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskStatus16() { TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge) diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs index ba2034db71219f..f597310020d626 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskWaitAllAnyTest.cs @@ -451,9 +451,8 @@ private bool CheckResult(double result) public sealed class TaskWaitAllAny { - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny0() { TaskInfo node1 = new TaskInfo(WorkloadType.Heavy); @@ -463,7 +462,7 @@ public static void TaskWaitAllAny0() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] public static void TaskWaitAllAny1() { @@ -505,9 +504,8 @@ public static void TaskWaitAllAny4() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny5() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -533,9 +531,8 @@ public static void TaskWaitAllAny6() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny7() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -810,9 +807,8 @@ public static void TaskWaitAllAny30() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny31() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -896,9 +892,8 @@ public static void TaskWaitAllAny32() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny33() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryLight); @@ -908,9 +903,8 @@ public static void TaskWaitAllAny33() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny34() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); @@ -946,9 +940,8 @@ public static void TaskWaitAllAny36() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny37() { TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy); @@ -1035,9 +1028,8 @@ public static void TaskWaitAllAny44() test.RealRun(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void TaskWaitAllAny45() { TaskInfo node1 = new TaskInfo(WorkloadType.Medium); diff --git a/src/libraries/System.Threading/tests/BarrierTests.cs b/src/libraries/System.Threading/tests/BarrierTests.cs index 54056f731d287a..c6b8640cb58d29 100644 --- a/src/libraries/System.Threading/tests/BarrierTests.cs +++ b/src/libraries/System.Threading/tests/BarrierTests.cs @@ -371,9 +371,8 @@ public static void RunBarrierTest9_PostPhaseException() EnsurePostPhaseThrew(barrier); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunBarrierTest10a() { // Regression test for Barrier race condition diff --git a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs index 30ee6f08ffb07b..d4569737e35078 100644 --- a/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs +++ b/src/libraries/System.Threading/tests/ReaderWriterLockSlimTests.cs @@ -380,9 +380,8 @@ public static void WriterToUpgradeableReaderChain() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void ReleaseReadersWhenWaitingWriterTimesOut() { using (var rwls = new ReaderWriterLockSlim()) @@ -450,9 +449,8 @@ public static void ReleaseReadersWhenWaitingWriterTimesOut() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void DontReleaseWaitingReadersWhenThereAreWaitingWriters() { using(var rwls = new ReaderWriterLockSlim()) diff --git a/src/libraries/System.Threading/tests/SpinLockTests.cs b/src/libraries/System.Threading/tests/SpinLockTests.cs index 470e52ef044db2..5b027b32a58430 100644 --- a/src/libraries/System.Threading/tests/SpinLockTests.cs +++ b/src/libraries/System.Threading/tests/SpinLockTests.cs @@ -69,14 +69,13 @@ 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)] [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest0_Enter(int threadsCount, bool enableThreadIDs) { // threads array @@ -140,14 +139,13 @@ 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)] [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest1_TryEnter(int threadsCount, bool enableThreadIDs) { for (int j = 0; j < 2; j++) @@ -195,14 +193,13 @@ 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)] [InlineData(2, true)] [InlineData(128, true)] [InlineData(256, true)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public static void RunSpinLockTest2_TryEnter(int threadsCount, bool enableThreadIDs) { for (int j = 0; j < 2; j++) From dda4c410fd86129edb8d5a7d3c87917e05ea54e3 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Thu, 7 Jan 2021 11:32:29 +0100 Subject: [PATCH 19/21] Address review comment for monitors not supported --- .../tests/DiagnosticSourceTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs index f5e4623cd6ba4b..16267316c03201 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceTests.cs @@ -500,13 +500,12 @@ 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)] [InlineData(100, 103)] [InlineData(100, 104)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void AllSubscriberStress(int numThreads, int numListenersPerThread) { // No listeners have been created yet From 650ef01d6f55d5c5a2e9f48c5f9db1bb5b26ba4e Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Fri, 8 Jan 2021 06:08:38 +0100 Subject: [PATCH 20/21] Address review comments --- .../System.Transactions.Local/tests/CloneTxTests.cs | 3 +-- .../tests/NonMsdtcPromoterTests.cs | 6 ++---- .../System.Transactions.Local/tests/TransactionScopeTest.cs | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs b/src/libraries/System.Transactions.Local/tests/CloneTxTests.cs index 44a703fc4003f2..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)] @@ -165,7 +165,6 @@ public void Run(CloneType cloneType, IsolationLevel isoLevel, bool forcePromote, [InlineData(CloneType.BlockingDependent, IsolationLevel.Snapshot, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.Chaos, false, TransactionStatus.Aborted)] [InlineData(CloneType.BlockingDependent, IsolationLevel.Unspecified, false, TransactionStatus.Aborted)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void RunOuterLoop(CloneType cloneType, IsolationLevel isoLevel, bool forcePromote, TransactionStatus expectedStatus) { Run(cloneType, isoLevel, forcePromote, expectedStatus); diff --git a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs index 45454665c57865..747d33a280d8c0 100644 --- a/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs +++ b/src/libraries/System.Transactions.Local/tests/NonMsdtcPromoterTests.cs @@ -2148,10 +2148,9 @@ 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)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) { // Blocking clone that isn't completed before commit @@ -2162,10 +2161,9 @@ public void PSPENonMsdtcBlockingCloneCompletedAfterCommit(bool promote) /// PSPE Non-MSDTC Timeout. /// [OuterLoop] // long timeout - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [InlineData(false)] [InlineData(true)] - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void PSPENonMsdtcTimeout(bool promote) { // tx timeout diff --git a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs index 0bbe869cb0f183..06ba17a17d3d3f 100644 --- a/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs +++ b/src/libraries/System.Transactions.Local/tests/TransactionScopeTest.cs @@ -505,9 +505,8 @@ public void RMFail1() Assert.Null(Transaction.Current); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] [OuterLoop] // 30 second timeout - [PlatformSpecific(~TestPlatforms.Browser)] // Cannot wait on monitors on this runtime. public void RMFail2() { IntResourceManager irm = new IntResourceManager(1); From a9a4b6ccbae081b7c81de9a037aeea9cfe9b7cf2 Mon Sep 17 00:00:00 2001 From: Kenneth Pouncey Date: Mon, 11 Jan 2021 09:40:06 +0100 Subject: [PATCH 21/21] Add threading supported condition. ``` fail: [FAIL] System.Text.Json.Serialization.Tests.EnumConverterTests.VeryLargeAmountOfEnumsToSerialize [08:10:56] info: System.PlatformNotSupportedException : Cannot wait on monitors on this runtime. ``` --- .../System.Text.Json/tests/Serialization/EnumConverterTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.