From a09e7130ad52d8681d23ee6618221bd29e082b07 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Wed, 15 Jul 2026 10:09:06 -0700 Subject: [PATCH 1/4] Enable DefaultContext tests in ReadyToRun pipeline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3e455e1e-8fd6-4013-a04b-99b97c6e82be --- src/libraries/tests.proj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 4d543e9028294d..a204830deb4133 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -666,7 +666,6 @@ - From 0049e6c44294f17a9ca09e08d97747138cbe82fc Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:04:44 -0700 Subject: [PATCH 2/4] Enable System.Reflection tests in ReadyToRun pipeline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3e455e1e-8fd6-4013-a04b-99b97c6e82be --- .../tests/System.Reflection.Tests/AssemblyTests.cs | 2 +- src/libraries/tests.proj | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Runtime/tests/System.Reflection.Tests/AssemblyTests.cs b/src/libraries/System.Runtime/tests/System.Reflection.Tests/AssemblyTests.cs index 5e5f972a238370..8bef5a6a799bb3 100644 --- a/src/libraries/System.Runtime/tests/System.Reflection.Tests/AssemblyTests.cs +++ b/src/libraries/System.Runtime/tests/System.Reflection.Tests/AssemblyTests.cs @@ -154,7 +154,7 @@ public void GetEntryAssembly() string assembly = Assembly.GetEntryAssembly().ToString(); bool correct; - if (PlatformDetection.IsNativeAot) + if (PlatformDetection.IsNativeAot || PlatformDetection.IsReadyToRunCompiled) { // The single file test runner is not 'xunit.console'. correct = assembly.IndexOf("System.Reflection.Tests", StringComparison.OrdinalIgnoreCase) != -1; diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index a204830deb4133..362c49bf2f2c13 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -664,7 +664,6 @@ Tracking Issue for this work item: https://github.com/dotnet/runtime/issues/95928 --> - From d46de0c904bcbcb7ca807d3f4e03222708fea767 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:05:07 -0700 Subject: [PATCH 3/4] Enable System.Reflection.TypeExtensions tests in ReadyToRun pipeline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3e455e1e-8fd6-4013-a04b-99b97c6e82be --- .../System.Reflection.TypeExtensions/tests/ModuleTests.cs | 4 ++-- src/libraries/tests.proj | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/ModuleTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/ModuleTests.cs index 4e9233de36a73e..4430c629ccd46b 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/ModuleTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/ModuleTests.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; using Xunit; namespace System.Reflection.Tests @@ -22,11 +23,10 @@ public void GetModuleVersionId_HasModuleVersionId_BehaveConsistently() } } - // This calls Assembly.Load, but xUnit turn is into a LoadFrom because TinyAssembly is just a Content item in the project. [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported))] public void GetModuleVersionId_KnownAssembly_ReturnsExpected() { - Module module = Assembly.Load(new AssemblyName("TinyAssembly")).ManifestModule; + Module module = Assembly.LoadFrom(Path.Combine(AppContext.BaseDirectory, "TinyAssembly.dll")).ManifestModule; Assert.True(module.HasModuleVersionId()); if (!(PlatformDetection.IsMonoRuntime && PlatformDetection.IsAppleMobile && PlatformDetection.IsBuiltWithAggressiveTrimming)) { diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 362c49bf2f2c13..b991147a1220c2 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -664,7 +664,6 @@ Tracking Issue for this work item: https://github.com/dotnet/runtime/issues/95928 --> - From ae8f57155efa3e0f7bbfccf1c7d4ba2a0650c79f Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:05:30 -0700 Subject: [PATCH 4/4] Enable System.Runtime.Loader tests in ReadyToRun pipeline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3e455e1e-8fd6-4013-a04b-99b97c6e82be --- .../tests/System.Runtime.Loader.Tests.csproj | 9 +++++++++ src/libraries/tests.proj | 10 +--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj b/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj index c62b81f0f28d2f..9909ec4f738030 100644 --- a/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj +++ b/src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj @@ -129,4 +129,13 @@ + + + + + + diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index b991147a1220c2..e38746e4f7a561 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -655,16 +655,8 @@ - - +