NativeLibraryTests: Platform restriction on some tests (dotnet/coreclr#22732)
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Thu, 28 Feb 2019 22:10:46 +0000 (14:10 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Feb 2019 22:10:46 +0000 (14:10 -0800)
commitc42bd64d69c6eb7f5cd1c094a7d9387ad74b84a0
tree73a62ce218a8c2fd542ba7f26296a6b7951cb79f
parent8b138c0ac65643eb83db1ce4c29aea89e7268a6c
NativeLibraryTests: Platform restriction on some tests (dotnet/coreclr#22732)

NativeLibraryTests: Platform restriction on some tests

This change adds platform restrictions on two API tests:
* Change the System32 dll loading test from `msi.dll` to `uri.dll`
* Restrict the System32 dll loading test to platforms where `uri.dll` actually exists in the System32 directory.
* Disable double-free tests on Linux, because the OS call doesn't reliably fail.

Use the public version of CoreLib, since the NativeLibrary APIs are
now available.

Fixes dotnet/coreclr#22726

Commit migrated from https://github.com/dotnet/coreclr/commit/c395a8a8e7a987000455d65efac371973d96a3c8
src/coreclr/tests/src/Interop/NativeLibrary/NativeLibraryTests.cs
src/coreclr/tests/src/Interop/NativeLibrary/NativeLibraryTests.csproj