Skip to content

Commit 586e891

Browse files
More native AOT Pri-1 test tree bring up (dotnet#111994)
I've also dropped `RequiresProcessIsolation` from tests while I was looking at them.
1 parent 56b7d0e commit 586e891

File tree

13 files changed

+22
-16
lines changed

13 files changed

+22
-16
lines changed

src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public static class PlatformDetection
2525

2626
public static bool IsRareEnumsSupported => !Utilities.IsNativeAot;
2727

28+
public static bool IsCollectibleAssembliesSupported => !Utilities.IsNativeAot;
29+
2830
private static volatile Tuple<bool> s_lazyNonZeroLowerBoundArraySupported;
2931
public static bool IsNonZeroLowerBoundArraySupported
3032
{

src/tests/Loader/AssemblyDependencyResolver/MissingHostPolicyTests/MissingHostPolicyTests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
44
<RequiresProcessIsolation>true</RequiresProcessIsolation>
55
<CLRTestPriority>1</CLRTestPriority>
6+
<!-- AssemblyDependencyResolver is not supported -->
7+
<NativeAotIncompatible>true</NativeAotIncompatible>
68
</PropertyGroup>
79
<ItemGroup>
810
<Compile Include="InvalidHostingTest.cs" />

src/tests/Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using System.Reflection;
1515
using System.Runtime.CompilerServices;
1616
using System.IO;
17+
using TestLibrary;
1718
using Xunit;
1819

1920
class TestAssemblyLoadContext : AssemblyLoadContext
@@ -207,7 +208,7 @@ private static int TestFullUnload(TestCase testCase)
207208
return 100;
208209
}
209210

210-
[Fact]
211+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsCollectibleAssembliesSupported))]
211212
public static int TestEntryPoint()
212213
{
213214
int status = 100;

src/tests/Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<ItemGroup>
1414
<ProjectReference Include="TestInterface.csproj" ReferenceOutputAssembly="false" />
1515
<ProjectReference Include="TestClass.csproj" ReferenceOutputAssembly="false" />
16+
<ProjectReference Include="$(TestSourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
1617
</ItemGroup>
1718

1819
<PropertyGroup>

src/tests/Loader/NativeLibs/FromNativePaths.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
55
<CLRTestPriority>1</CLRTestPriority>
66
<RequiresProcessIsolation>true</RequiresProcessIsolation>
7+
<!-- Test expects a CORE_ROOT -->
8+
<NativeAotIncompatible>true</NativeAotIncompatible>
79
</PropertyGroup>
810
<ItemGroup>
911
<Compile Include="FromNativePaths.cs" />

src/tests/Loader/classloader/MethodImpl/generics_override1.ilproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
3-
<!-- Needed for NativeAotIncompatible -->
4-
<RequiresProcessIsolation>true</RequiresProcessIsolation>
5-
63
<!-- Testing TypeLoad/MissingMethod exceptions in situations that are expensive to detect -->
74
<NativeAotIncompatible>true</NativeAotIncompatible>
85
</PropertyGroup>

src/tests/Loader/classloader/MethodImpl/override_override1.ilproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
3-
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
4-
<RequiresProcessIsolation>true</RequiresProcessIsolation>
53
<CLRTestPriority>1</CLRTestPriority>
4+
<!-- Testing TypeLoad exceptions in situations that are expensive to detect -->
5+
<NativeAotIncompatible>true</NativeAotIncompatible>
66
</PropertyGroup>
77
<ItemGroup>
88
<Compile Include="override_override1.il" />

src/tests/Loader/classloader/MethodImpl/self_override1.ilproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
3-
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
4-
<RequiresProcessIsolation>true</RequiresProcessIsolation>
53
<CLRTestPriority>1</CLRTestPriority>
64
</PropertyGroup>
75
<PropertyGroup>

src/tests/Loader/classloader/MethodImpl/self_override2.ilproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
3-
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
4-
<RequiresProcessIsolation>true</RequiresProcessIsolation>
53
<CLRTestPriority>1</CLRTestPriority>
64
</PropertyGroup>
75
<ItemGroup>

src/tests/Loader/classloader/MethodImpl/self_override3.ilproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
3-
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
4-
<RequiresProcessIsolation>true</RequiresProcessIsolation>
53
<CLRTestPriority>1</CLRTestPriority>
4+
<!-- Testing TypeLoad exceptions in situations that are expensive to detect -->
5+
<NativeAotIncompatible>true</NativeAotIncompatible>
66
</PropertyGroup>
77
<ItemGroup>
88
<Compile Include="self_override3.il" />

0 commit comments

Comments
 (0)