diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/DiagnosticMethodInfoTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/DiagnosticMethodInfoTests.cs index 98bfd84ffb5ba8..d40deeec4a2f51 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/DiagnosticMethodInfoTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/DiagnosticMethodInfoTests.cs @@ -23,7 +23,7 @@ public void Create_Null() public static IEnumerable Create_OpenDelegate_TestData() { // Tracked at https://github.com/dotnet/runtime/issues/100748 - bool hasGvmOpenDelegateBug = !PlatformDetection.IsMonoRuntime && !PlatformDetection.IsNativeAot && !PlatformDetection.IsAppleMobile; + bool hasGvmOpenDelegateBug = !PlatformDetection.IsMonoRuntime && !PlatformDetection.IsNativeAot; const string TestNamespace = nameof(System) + "." + nameof(System.Diagnostics) + "." + nameof(System.Diagnostics.Tests) + "."; @@ -71,6 +71,7 @@ public static IEnumerable Create_OpenDelegate_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/124344", typeof(PlatformDetection), nameof(PlatformDetection.IsAppleMobile), nameof(PlatformDetection.IsCoreCLR))] [MemberData(nameof(Create_OpenDelegate_TestData))] public void Create_OpenDelegate(Delegate del, string expectedName, string expectedTypeName) { diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs index 02689dede3a119..c1476ae2cf60df 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs @@ -37,7 +37,6 @@ public void Ctor_FNeedFileInfo(bool fNeedFileInfo) [Theory] [ActiveIssue("https://github.com/mono/mono/issues/15187", TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/124344", typeof(PlatformDetection), nameof(PlatformDetection.IsAppleMobile))] [InlineData(StackFrame.OFFSET_UNKNOWN, true)] [InlineData(0, true)] [InlineData(1, true)] diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs index 0145acfb9aecd8..e7897b28a0fae7 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs @@ -603,10 +603,10 @@ public void ToString_ShowILOffset_ByteArrayLoad() } } - // On Android, stack traces do not include file names and line numbers + // On Android and Apple mobile, stack traces do not include file names and line numbers // Tracking issue: https://github.com/dotnet/runtime/issues/124087 private static string FileInfoPattern(string fileLinePattern) => - PlatformDetection.IsAndroid ? "" : fileLinePattern; + PlatformDetection.IsAndroid || PlatformDetection.IsAppleMobile ? "" : fileLinePattern; public static Dictionary MethodExceptionStrings = new() { diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 0c96507f4a02d6..90c18ee78a780d 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -670,7 +670,6 @@ -