dotnet / dotnet/runtime

StructureToPtr_ByValTStr_MultiByte_Overflow failing on release/8.0

Open
#129,228 0 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime.InteropServices
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

The new test `System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValTStr_MultiByte_Overflow` is failing on Linux on https://github.com/dotnet/runtime/pull/129195, which brings internal commits from release/8.0 into this repo:

```
[23:27:39] info: Starting: System.Runtime.InteropServices.Tests.dll
[23:27:40] info: [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValTStr_MultiByte_Overflow
[23:27:40] info: Assert.Throws() Failure
[23:27:40] info: Expected: typeof(System.ArgumentException)
[23:27:40] info: Actual: (No exception was thrown)
[23:27:40] info: at System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValTStr_MultiByte_Overflow()
[23:27:40] info: at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[23:27:40] info: at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[23:27:41] info: Finished: System.Runtime.InteropServices.Tests.dll
```

I am going to use this issue as `[ActiveIssue]` to disable the test, so that the PR can be merged.

cc: @elinor-fung

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.