diff --git a/src/tests/Interop/DllImportAttribute/DllImportPath/DllImportPathTest.cs b/src/tests/Interop/DllImportAttribute/DllImportPath/DllImportPathTest.cs index c83295d89292a..ee92305b78962 100644 --- a/src/tests/Interop/DllImportAttribute/DllImportPath/DllImportPathTest.cs +++ b/src/tests/Interop/DllImportAttribute/DllImportPath/DllImportPathTest.cs @@ -174,11 +174,14 @@ public static int Main(string[] args) { TestNativeLibraryProbingOnLocalPath(); TestNativeLibraryProbingOnRelativePath(); - if (!OperatingSystem.IsMacOS()) // This test fails due to a bug in OSX 10.12 combined with the weird way that HFS+ handles unicode file names + if (!OperatingSystem.IsMacOS()) { + // This test fails due to a bug in OSX 10.12 combined with the weird way that HFS+ handles unicode file names TestNativeLibraryProbingUnicode(); + + // Propagating LD_LIBRARY_PATH/DYLD_LIBRARY_PATH may blocked on Mac due to System Integrity Protection + TestNativeLibraryProbingOnPathEnv(); } - TestNativeLibraryProbingOnPathEnv(); if (OperatingSystem.IsWindows()) { TestNativeExeProbing();