Add PInvoke/Structures tests
authorJiang Zeng (Pactera Technologies Inc) <v-jiazen@microsoft.com>
Wed, 8 Aug 2018 09:19:42 +0000 (02:19 -0700)
committerJeremy Koritzinsky <jkoritzinsky@gmail.com>
Thu, 1 Nov 2018 00:24:05 +0000 (17:24 -0700)
commitb54e0ae828161f75fde831b71678b3dc47a62b5e
tree60cb0c12c361ee1ee422d29a6df682b74dec0706
parent2b13bb06c60f5c032194f73ddf48cf67790bf689
Add PInvoke/Structures tests

Fix compile warnings

Fix compile warnings

Fix compile warnings

Remove duplicate tests. Move ReversePinvoke tests under StructMarshalling.

Clean up some compile errors.

More string cleanup.

More string fixes

Clean up consts and typedefs.

Fix typo.

Change TP_slen return type to match xplatform.h

Fix printf specifiers.

Don't define wcslen in xplatform if it's been macro redefined (to platformdefines.h's TP_slen)

Fix build breaks.

Remove extension from DllImport so it will correctly resolve xplat.

Fix printf specifiers again...

Fix Windows x86 calling convention mismatch.

Fix HRESULT size off-Windows

Commit migrated from https://github.com/dotnet/coreclr/commit/aa0d4daf1491562a6c7e6ef18f719938a0e6e4bd
20 files changed:
src/coreclr/tests/src/Common/Platform/platformdefines.cpp
src/coreclr/tests/src/Common/Platform/platformdefines.h
src/coreclr/tests/src/Interop/CMakeLists.txt
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/Helper.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/CMakeLists.txt [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/DelegatePInvoke/DelegatePInvokeTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/DelegatePInvoke/DelegatePInvokeTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/ExpStructAsParamNative.cpp [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/ExpStructAsParamNative.h [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/ReversePInvokeManaged/ReversePInvokeTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalExpStruct/ReversePInvokeManaged/ReversePInvokeTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/CMakeLists.txt [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/DelegatePInvoke/DelegatePInvokeTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/DelegatePInvoke/DelegatePInvokeTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/ReversePInvoke/ReversePInvokeTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/ReversePInvoke/ReversePInvokeTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/SeqStructDelRevPInvokeNative.cpp [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/MarshalSeqStruct/SeqStructDelRevPInvokeNative.h [new file with mode: 0644]
src/coreclr/tests/src/Interop/StructMarshalling/ReversePInvoke/Struct.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/common/xplatform.h