Fix dotnet/coreclr#21209 (dotnet/coreclr#21237)
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Thu, 29 Nov 2018 07:09:30 +0000 (23:09 -0800)
committerGitHub <noreply@github.com>
Thu, 29 Nov 2018 07:09:30 +0000 (23:09 -0800)
commitd480065527475d3f038b20f76f1ba6b84f5a226f
treee381b48d86d953259a0c0ab567d40177c18f5b68
parent7d51d70cdd1cfcfda5aae4093d106a3e70ce713e
Fix dotnet/coreclr#21209 (dotnet/coreclr#21237)

This commit has two changes to Native Load Library Tests fix the failures in:
https://github.com/dotnet/coreclr/issues/21209

1) Windows: The test tried to load a DLL from Win32 directory which doesn't exist
   in Windows server 2016. So changed to use a file that exists.
2) Linux: Disable the test when run against packages -- because in this configuration
   the tests are built on Windows, and the native DLL is built separately and copied
   over to the CORE_ROOT directory instead of the test directory.
   [Several other tests are disabled with the comment "Issue building native DLL" on Linux]

Commit migrated from https://github.com/dotnet/coreclr/commit/0a0bcebae483b434c70875707c0eb1a493eb2e66
src/coreclr/tests/issues.targets
src/coreclr/tests/src/Interop/MarshalAPI/NativeLibrary/NativeLibraryTests.cs