From 9338fd8415d7f48ebfe31ea86e54929ed55448bb Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 20 Jul 2021 21:48:39 -0400 Subject: [PATCH] Re-enable async method state machine clearing test (#56007) --- .../System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs | 3 +-- .../System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libraries/System.Threading.Tasks/tests/System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs b/src/libraries/System.Threading.Tasks/tests/System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs index 647f3cb..1babd5e 100644 --- a/src/libraries/System.Threading.Tasks/tests/System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs @@ -523,8 +523,7 @@ namespace System.Threading.Tasks.Tests TaskScheduler.UnobservedTaskException -= handler; } - [ActiveIssue("https://github.com/dotnet/runtime/issues/30122")] - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static async Task AsyncMethodsDropsStateMachineAndExecutionContextUponCompletion() { // Create a finalizable object that'll be referenced by both an async method's diff --git a/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs index a29648a..5b832f2 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs @@ -29,8 +29,7 @@ namespace System.Threading.Tasks.Tests } } - [ActiveIssue("https://github.com/dotnet/runtime/issues/30122")] - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] public static async Task TaskDropsExecutionContextUponCompletion() { // Create a finalizable object that'll be referenced by captured ExecutionContext, -- 2.7.4