Add PInvoke/Delegate tests (dotnet/coreclr#19323)
authorZeng Jiang <v-jiazen@microsoft.com>
Tue, 23 Oct 2018 21:05:57 +0000 (05:05 +0800)
committerJeremy Koritzinsky <jkoritzinsky@gmail.com>
Tue, 23 Oct 2018 21:05:57 +0000 (14:05 -0700)
commit343fd55c129447e68ce1d6dbe3483933c4c8e607
tree567dfc4140be2efa7032b835e6ed9617f16dc2fe
parentad5ef66ef3970b8c1afdbb3dfd56c8e077344988
Add PInvoke/Delegate tests (dotnet/coreclr#19323)

* Add PInvoke/Delegate tests

* Initial pass to get Delegate tests building xplat and running with current infrastructure.

* Fix BOOL and NULL comparisons.

* Fix copy-paste typo

* Disable explicit offset tests off-Windows.

Commit migrated from https://github.com/dotnet/coreclr/commit/77aa9586d5a5aff401f9461de7252c27648a2763
19 files changed:
src/coreclr/tests/src/Interop/CMakeLists.txt
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsDefault/AsDefaultTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsDefault/AsDefaultTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFieldNative.cpp [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFunctionPtr/AsFunctionPtrTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFunctionPtr/AsFunctionPtrTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsInterface/AsInterfaceTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsInterface/AsInterfaceTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/CMakeLists.txt [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/RefLib/RefLib.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/RefLib/RefLib.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsDefault/AsDefaultTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsDefault/AsDefaultTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsFunctionPtr/AsFunctionPtrTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsFunctionPtr/AsFunctionPtrTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsInterface/AsInterfaceTest.cs [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsInterface/AsInterfaceTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsParamNative.cpp [new file with mode: 0644]
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/CMakeLists.txt [new file with mode: 0644]