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:
authorVitek Karas <vitek.karas@microsoft.com>2021-05-28 22:20:12 +0300
committerGitHub <noreply@github.com>2021-05-28 22:20:12 +0300
commit526731fe2bba33340009373e02429c910be55144 (patch)
treec859b911e7c82a2a99de8910a0f0d60ffc0bfeb7 /test/Mono.Linker.Tests
parent50901f9ba5c8672c2758577a61f45fea3cc6cd76 (diff)
Warn when method return type is annotated but it's not Type or String (#2066)
Also added a small fix in the test infra
Diffstat (limited to 'test/Mono.Linker.Tests')
-rw-r--r--test/Mono.Linker.Tests/TestCasesRunner/LinkerTestLogger.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/LinkerTestLogger.cs b/test/Mono.Linker.Tests/TestCasesRunner/LinkerTestLogger.cs
index 1ad51cfff..17a746103 100644
--- a/test/Mono.Linker.Tests/TestCasesRunner/LinkerTestLogger.cs
+++ b/test/Mono.Linker.Tests/TestCasesRunner/LinkerTestLogger.cs
@@ -18,6 +18,11 @@ namespace Mono.Linker.Tests.TestCasesRunner
public void LogMessage (MessageContainer message)
{
+ // This is to force Cecil to load all the information from the assembly
+ // When the message is logged, the assembly is still opened by the linker and available
+ // later on during validation, it may already be closed and Cecil's lazy loading might fail.
+ message.ToString ();
+
MessageContainers.Add (message);
}
}