From 3104a16d3359e3fe33b11f8ce62051de13e64727 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 22 Feb 2022 13:56:52 -0800 Subject: [PATCH] More test fixes --- .../tests/DllImportGenerator.UnitTests/AttributeForwarding.cs | 1 + .../ManualTypeMarshallingAnalyzerTests.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs index f799f47446c1d..60d120eebe4e7 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs @@ -224,6 +224,7 @@ struct S {{ }} +[CustomTypeMarshaller(typeof(S))] struct Native {{ public Native(S s) {{ }} diff --git a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/ManualTypeMarshallingAnalyzerTests.cs b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/ManualTypeMarshallingAnalyzerTests.cs index 482c5a3bec0ba..bd3ffbbede06d 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/ManualTypeMarshallingAnalyzerTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/ManualTypeMarshallingAnalyzerTests.cs @@ -843,10 +843,10 @@ class {|#0:S|} public ref byte GetPinnableReference() => ref c; } -[CustomTypeMarshaller(typeof(S))] +[CustomTypeMarshaller(typeof(S), BufferSize = 0x100)] struct {|#1:Native|} { - public Native(S s, Span buffer, BufferSize = 0x100) {} + public Native(S s, Span buffer) {} public IntPtr Value => IntPtr.Zero; }";