diff options
author | Jackson Schuster <jschuster@microsoft.com> | 2021-12-03 07:45:05 +0300 |
---|---|---|
committer | Jackson Schuster <jschuster@microsoft.com> | 2021-12-10 01:39:52 +0300 |
commit | c6293114a2d7c5134382505c495895c1f336e09c (patch) | |
tree | 8bd128e2dfc76f665f7ffd579caabb8dbe24a2ad /test | |
parent | b0f04f14a791fc463129e0d463be58cfbb1748f4 (diff) |
Revert files not associated with the bug fix
Diffstat (limited to 'test')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs | 13 | ||||
-rw-r--r-- | test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs | 2 |
2 files changed, 5 insertions, 10 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs b/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs index a92e86945..c652f26fd 100644 --- a/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs +++ b/test/Mono.Linker.Tests.Cases/Interop/PInvoke/Warnings/ComPInvokeWarning.cs @@ -30,7 +30,6 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings Call_CanSuppressWarningOnParameter (); Call_CanSuppressWarningOnReturnType (); Call_CanSuppressWithRequiresUnreferencedCode (); - Call_CanSuppressWithRequiresUnreferencedCodeInLambda (); Call_CanSuppressPInvokeWithRequiresUnreferencedCode (); Call_PInvokeWithRequiresUnreferencedCode (); } @@ -157,6 +156,8 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings static extern IFoo CanSuppressWarningOnReturnType (); [RequiresUnreferencedCode ("test")] + // Bug https://github.com/dotnet/linker/issues/2378 + [ExpectedWarning ("IL2050", ProducedBy = ProducedBy.Analyzer)] static void Call_CanSuppressWithRequiresUnreferencedCode () { CanSuppressWithRequiresUnreferencedCode (null); @@ -166,6 +167,8 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings static extern void CanSuppressWithRequiresUnreferencedCode (IFoo foo); [RequiresUnreferencedCode ("test")] + // Bug https://github.com/dotnet/linker/issues/2378 + [ExpectedWarning ("IL2050", ProducedBy = ProducedBy.Analyzer)] static void Call_CanSuppressPInvokeWithRequiresUnreferencedCode () { CanSuppressPInvokeWithRequiresUnreferencedCode (null); @@ -175,14 +178,6 @@ namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Warnings [DllImport ("Foo")] static extern void CanSuppressPInvokeWithRequiresUnreferencedCode (IFoo foo); - [RequiresUnreferencedCode ("test")] - static void Call_CanSuppressWithRequiresUnreferencedCodeInLambda () - { - var lambda = () => CanSuppressWithRequiresUnreferencedCode (null); - lambda (); - } - - [ExpectedWarning ("IL2050")] [ExpectedWarning ("IL2026")] static void Call_PInvokeWithRequiresUnreferencedCode () diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs index 0cb975aa4..6d0d97dd3 100644 --- a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs +++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresCapability.cs @@ -2083,4 +2083,4 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability } } } -}
\ No newline at end of file +} |