Skip to content

PInvoke/Array/MarshalArrayAsParam/AsLPArray/AsLPArrayTest failing #81674

@MichalStrehovsky

Description

@MichalStrehovsky
BEGIN EXECUTION

C:\git\runtime\artifacts\tests\coreclr\windows.x64.Release\interop\PInvoke\Array\MarshalArrayAsParam\AsLPArray\AsLPArrayTest>set DOTNETCLI=C:\git\runtime\dotnet.cmd 
call C:\git\runtime\src\tests\Common\scripts\nativeaottest.cmd C:\git\runtime\artifacts\tests\coreclr\windows.x64.Release\interop\PInvoke\Array\MarshalArrayAsParam\AsLPArray\AsLPArrayTest\ AsLPArrayTest.dll 
ByVal marshaling CLR array as c-style-array no attributes
ByVal marshaling  CLR array as c-style-array with InAttribute applied
By value marshaling CLR array as c-style-array with InAttribute and OutAttribute applied

TEST FAIL: Xunit.Sdk.TrueException: Assert.True() Failure
Expected: True
Actual:   False
   at Xunit.Assert.True(Nullable`1, String) + 0x4b
   at ArrayMarshal.TestMarshalByVal_InOut() + 0xa0
   at ArrayMarshal.Main() + 0x2c
============ [CStyle_Array_Int] ============
============ [CStyle_Array_Uint] ============
============ [CStyle_Array_Short] ============
============ [CStyle_Array_Word] ============
============ [CStyle_Array_Long64] ============
============ [CStyle_Array_ULong64] ============
============ [CStyle_Array_Double] ============
============ [CStyle_Array_Float] ============
============ [CStyle_Array_Byte] ============
============ [CStyle_Array_Char] ============
============ [CStyle_Array_LPCSTR] ============
============ [CStyle_Array_LPSTR] ============
============ [CStyle_Array_LPCSTR] ============
============ [CStyle_Array_Struct] ============
============ [CStyle_Array_Bool] ============
============ [CStyle_Array_Int] ============
============ [CStyle_Array_Uint] ============
============ [CStyle_Array_Short] ============
============ [CStyle_Array_Word] ============
============ [CStyle_Array_Long64] ============
============ [CStyle_Array_ULong64] ============
============ [CStyle_Array_Double] ============
============ [CStyle_Array_Float] ============
============ [CStyle_Array_Byte] ============
============ [CStyle_Array_Char] ============
============ [CStyle_Array_LPCSTR] ============
============ [CStyle_Array_LPSTR] ============
============ [CStyle_Array_LPCSTR] ============
============ [CStyle_Array_Struct] ============
============ [CStyle_Array_Bool] ============
============ [CStyle_Array_Int_InOut] ============
============ [CStyle_Array_Int] ============
============ [CStyle_Array_Int_InOut_Null] ============
============ [CStyle_Array_Int_InOut_ZeroLength] ============
[CStyle_Array_Int_InOut_ZeroLength] Error: parameter actual is NULL
Expected: 100
Actual: 101
END EXECUTION - FAILED

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions