From f9b442f28b00157328c37cb3c38c79af527ab2db Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Thu, 8 Feb 2024 14:29:10 +0100 Subject: [PATCH] JIT: Skip a tensor test in MinOpts This test is very slow in MinOpts due to unfolded type comparisons in the conversion functions. --- .../System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs b/src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs index ef3722a9cac1ac..43f4949e1547b4 100644 --- a/src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs +++ b/src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs @@ -19,6 +19,7 @@ namespace System.Numerics.Tensors.Tests public class ConvertTests { [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBuiltWithAggressiveTrimming))] + [SkipOnCoreClr("Depends heavily on folded type comparisons", RuntimeTestModes.JitMinOpts)] public void ConvertTruncatingAndSaturating() { MethodInfo convertTruncatingImpl = typeof(ConvertTests).GetMethod(nameof(ConvertTruncatingImpl), BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance);