Skip to content

Commit 3104a16

Browse files
committed
More test fixes
1 parent 86c386a commit 3104a16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ struct S
224224
{{
225225
}}
226226
227+
[CustomTypeMarshaller(typeof(S))]
227228
struct Native
228229
{{
229230
public Native(S s) {{ }}

src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/ManualTypeMarshallingAnalyzerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,10 @@ class {|#0:S|}
843843
public ref byte GetPinnableReference() => ref c;
844844
}
845845
846-
[CustomTypeMarshaller(typeof(S))]
846+
[CustomTypeMarshaller(typeof(S), BufferSize = 0x100)]
847847
struct {|#1:Native|}
848848
{
849-
public Native(S s, Span<byte> buffer, BufferSize = 0x100) {}
849+
public Native(S s, Span<byte> buffer) {}
850850
851851
public IntPtr Value => IntPtr.Zero;
852852
}";

0 commit comments

Comments
 (0)