Re-enable async method state machine clearing test (#56007)
authorStephen Toub <stoub@microsoft.com>
Wed, 21 Jul 2021 01:48:39 +0000 (21:48 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Jul 2021 01:48:39 +0000 (21:48 -0400)
src/libraries/System.Threading.Tasks/tests/System.Runtime.CompilerServices/AsyncTaskMethodBuilderTests.cs
src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs

index 647f3cb..1babd5e 100644 (file)
@@ -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
index a29648a..5b832f2 100644 (file)
@@ -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,