Skip to content

Commit 1e155e1

Browse files
authored
[7.0] Disable DllImportSearchPathsTest in mobile (#86708)
1 parent 051ae7d commit 1e155e1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/tests/Interop/DllImportSearchPaths/DllImportSearchPathsTest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ public static void AssemblyDirectory_NotFound()
1919
}
2020

2121
public static bool CanLoadAssemblyInSubdirectory =>
22-
!TestLibrary.Utilities.IsNativeAot && !TestLibrary.PlatformDetection.IsMonoLLVMFULLAOT;
22+
!TestLibrary.Utilities.IsNativeAot &&
23+
!TestLibrary.PlatformDetection.IsMonoLLVMFULLAOT &&
24+
!OperatingSystem.IsAndroid() &&
25+
!OperatingSystem.IsIOS() &&
26+
!OperatingSystem.IsTvOS() &&
27+
!OperatingSystem.IsBrowser();
2328

2429
[ConditionalFact(nameof(CanLoadAssemblyInSubdirectory))]
2530
public static void AssemblyDirectory_Found()

src/tests/issues.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,6 +3857,9 @@
38573857
<ExcludeList Include = "$(XunitTestBinBase)/Loader/classloader/StaticVirtualMethods/GenericContext/**">
38583858
<Issue>https://github.com/dotnet/runtime/issues/67359</Issue>
38593859
</ExcludeList>
3860+
<ExcludeList Include="$(XunitTestBinBase)/Interop/DllImportSearchPaths/DllImportSearchPathsTest/**">
3861+
<Issue>Loads an assembly from file</Issue>
3862+
</ExcludeList>
38603863
</ItemGroup>
38613864

38623865
<ItemGroup Condition=" $(TargetOS) == 'Android' And '$(TargetArchitecture)' == 'arm64' " >

0 commit comments

Comments
 (0)