From 94513e6957ec8b3cc1824e49b99a6d69d913adba Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Wed, 8 Feb 2023 14:26:40 -0800 Subject: [PATCH] Skip TestNativeLibraryProbingOnPathEnv on macOS --- .../DllImportAttribute/DllImportPath/DllImportPathTest.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();