diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs index 2761b9b4b5a9cc..936cf1de22412e 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs @@ -750,10 +750,15 @@ public static IEnumerable Ctor_Async_TestData() yield return new object[] { () => V2Methods.Quuux(), MethodExceptionStrings["Quuux"] }; yield return new object[] { () => V2Methods.Bux(), MethodExceptionStrings["Bux"] }; yield return new object[] { () => V2Methods.ThrowsSoon(), MethodExceptionStrings["ThrowsSoon"] }; - yield return new object[] { () => V2Methods.ThrowsSoonValueTaskSource(), MethodExceptionStrings["ThrowsSoonValueTaskSource"] }; yield return new object[] { () => V1Methods.EdiOuter(), MethodExceptionStrings["EdiOuter"] }; } + // Move test case back into Ctor_Async_TestData once enabled. + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsRuntimeAsyncSupported))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/131123", typeof(PlatformDetection), nameof(PlatformDetection.IsCoreClrInterpreter))] + public Task ToString_Async_ThrowsSoonValueTaskSource() => + ToString_Async(V2Methods.ThrowsSoonValueTaskSource, MethodExceptionStrings["ThrowsSoonValueTaskSource"]); + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsRuntimeAsyncSupported))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))] [MemberData(nameof(Ctor_Async_TestData))]