diff options
author | Vitek Karas <vitek.karas@microsoft.com> | 2021-05-28 22:20:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 22:20:12 +0300 |
commit | 526731fe2bba33340009373e02429c910be55144 (patch) | |
tree | c859b911e7c82a2a99de8910a0f0d60ffc0bfeb7 /test/Mono.Linker.Tests | |
parent | 50901f9ba5c8672c2758577a61f45fea3cc6cd76 (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.cs | 5 |
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); } } |