Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Schuster <jschuster@microsoft.com>2021-12-07 23:29:11 +0300
committerJackson Schuster <jschuster@microsoft.com>2021-12-10 01:37:06 +0300
commitdc57a7c2d98baed2c2f77359b280ed20158c2b6b (patch)
treeb583b3a86aa7dfdedf85c6a9e9506299e30ee68a
parent453422d84908df0c244fd036d412c63a857f5604 (diff)
Requires Public Methods of new test class so it doesn't get trimmed in test
-rw-r--r--test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs1
-rw-r--r--test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs
index 046522832..0cb975aa4 100644
--- a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs
+++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs
@@ -1285,6 +1285,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability
RequirePublicMethods (typeof (BaseClassWithoutRequires));
RequirePublicMethods (typeof (DerivedClassWithRequires));
RequirePublicMethods (typeof (DerivedClassWithoutRequires));
+ RequirePublicMethods (typeof (DerivedClassWithAllWarnings));
RequirePublicMethods (typeof (IBaseWithRequires));
RequirePublicMethods (typeof (IBaseWithoutRequires));
RequirePublicMethods (typeof (ImplementationClassWithRequires));
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs
index a0e0e3c2d..aa6ada48f 100644
--- a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs
+++ b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs
@@ -1075,6 +1075,12 @@ namespace Mono.Linker.Tests.TestCasesRunner
// Compensate for cases where for some reason the OM doesn't preserve the declaring types
// on certain things after trimming.
+ //var actualDeclaringType = actualMember?.DeclaringType;
+ //var expectedDeclaringType = expectedOriginMember?.DeclaringType;
+ //while (actualDeclaringType != null && expectedDeclaringType != null) {
+ // actualDeclaringType = actualDeclaringType.DeclaringType;
+ // expectedDeclaringType = expectedDeclaringType.DeclaringType;
+ //}
if (actualMember != null && actualMember?.DeclaringType == null &&
actualMember?.Name == expectedOriginMember.Name)
return true;