NativeLibraryTests: Platform restriction on some tests (#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)
commitc395a8a8e7a987000455d65efac371973d96a3c8
tree9c07fc039498df3c3d6e3a9950bf29a5a00c9f91
parent3a0367c75a9b5cebbcc2f2c9609aa05536ed921b
NativeLibraryTests: Platform restriction on some tests (#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 #22726
tests/src/Interop/NativeLibrary/NativeLibraryTests.cs
tests/src/Interop/NativeLibrary/NativeLibraryTests.csproj