From ad5a9f65e789a33aaace2b6e60a034fd21af4942 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 15 Dec 2025 18:32:44 +0100 Subject: [PATCH] [net11.0] Disable CoreCLR tests on x64. They may crash: https://github.com/dotnet/runtime/issues/122563 --- tests/xharness/Jenkins/TestVariationsFactory.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/xharness/Jenkins/TestVariationsFactory.cs b/tests/xharness/Jenkins/TestVariationsFactory.cs index 4cf32382b0d..80a5969e801 100644 --- a/tests/xharness/Jenkins/TestVariationsFactory.cs +++ b/tests/xharness/Jenkins/TestVariationsFactory.cs @@ -38,6 +38,8 @@ IEnumerable GetTestData (RunTestTask test) var x64_sim_runtime_identifier = string.Empty; var supports_mono = test.Platform != TestPlatform.Mac; var supports_coreclr = true; + var coreclr_works = Harness.CanRunArm64 || test.Platform == TestPlatform.Mac; // ignore tests on x64 until https://github.com/dotnet/runtime/issues/122563 + var ignore_coreclr = coreclr_works ? ignore : true; switch (test.Platform) { case TestPlatform.Mac: @@ -73,13 +75,13 @@ IEnumerable GetTestData (RunTestTask test) break; case "introspection": if (supports_coreclr && supports_mono) { // we only need specific coreclr test if we *also* support mono (otherwise the default test will be coreclr) - yield return new TestData { Variation = "CoreCLR", TestVariation = "coreclr", Ignored = ignore }; + yield return new TestData { Variation = "CoreCLR", TestVariation = "coreclr", Ignored = ignore_coreclr }; } break; case "monotouch-test": if (supports_coreclr && supports_mono) { // we only need specific coreclr test if we *also* support mono (otherwise the default test will be coreclr) - yield return new TestData { Variation = "Debug (CoreCLR)", TestVariation = "debug|coreclr", Ignored = ignore }; - yield return new TestData { Variation = "Release (CoreCLR)", TestVariation = "release|coreclr", Ignored = ignore }; + yield return new TestData { Variation = "Debug (CoreCLR)", TestVariation = "debug|coreclr", Ignored = ignore_coreclr }; + yield return new TestData { Variation = "Release (CoreCLR)", TestVariation = "release|coreclr", Ignored = ignore_coreclr }; } break; }