diff options
author | Michael Voorhees <michaelv@unity3d.com> | 2019-10-14 16:44:21 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-10-15 20:08:07 +0300 |
commit | 5bc5b735bc59048d06b0e1309c5574213968a283 (patch) | |
tree | 916c5d5ae3abf7ae255876d4b259e52b026652bc /test | |
parent | 7e2d641f595ac16243387625f8bf6f178829d446 (diff) |
Test fixes
Fix two type forwarding tests. On .NET FW the built in compiler will drop the reference to the forwarder assembly when compiling the test assembly. Use roslyn to give consistent behavior across platforms
Diffstat (limited to 'test')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwarded.cs | 4 | ||||
-rw-r--r-- | test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwardedWithCopyAction.cs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwarded.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwarded.cs index 681632a74..1e795e333 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwarded.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwarded.cs @@ -5,6 +5,10 @@ using Mono.Linker.Tests.Cases.TypeForwarding.Dependencies; namespace Mono.Linker.Tests.Cases.TypeForwarding { + // On .NET FW the built in compiler will drop the reference to the forwarder assembly when compiling the test assembly. + // Use roslyn to give consistent behavior across platforms + [SetupCSharpCompilerToUse ("csc")] + // Actions: // link - This assembly, Forwarder.dll and Implementation.dll [SetupLinkerUserAction ("link")] diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwardedWithCopyAction.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwardedWithCopyAction.cs index 6ee82d650..6d211a151 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwardedWithCopyAction.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/AttributeArgumentForwardedWithCopyAction.cs @@ -5,6 +5,10 @@ using Mono.Linker.Tests.Cases.TypeForwarding.Dependencies; namespace Mono.Linker.Tests.Cases.TypeForwarding { + // On .NET FW the built in compiler will drop the reference to the forwarder assembly when compiling the test assembly. + // Use roslyn to give consistent behavior across platforms + [SetupCSharpCompilerToUse ("csc")] + // Actions: // link - Forwarder.dll and Implementation.dll // copy - this (test.dll) assembly |