From 3475a75a5096a3502f4b2d70b57ee5beae4b07bd Mon Sep 17 00:00:00 2001 From: Hamish Arblaster Date: Tue, 22 Aug 2023 18:52:16 +1000 Subject: [PATCH] Disable some of the tests for mono MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Haven't opened an issue for this yet - will follow up with an issue & commit to add the issue link --- src/libraries/System.Runtime/tests/System/Type/TypeTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs index 5819c7ae4d281..defb620a0df53 100644 --- a/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs +++ b/src/libraries/System.Runtime/tests/System/Type/TypeTests.cs @@ -1212,7 +1212,8 @@ public static IEnumerable GetInterfaceMap_TestData() } // Check we have the expected implementation for the level 3 interfaces (abstract explicit implementations - I1.M and I1.G methods) - if (classType.Index >= 3) + bool isMono = typeof(object).Assembly.GetType("Mono.RuntimeStructs") != null; // [ActiveIssue("https://github.com/dotnet/runtime/issues/TODO")] + if (!isMono && classType.Index >= 3) { foreach ((Type Type, string MethodNamePrefix) interfaceType in new (Type, string)[] {