From 78f94d34998ba2384f6b3ba11767c53f05edc18f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 15:53:22 +0000 Subject: [PATCH] Skip X509Certificate2CollectionRemoveRangeArray under R2R (refs #128482) Test fails under crossgen2 R2R on all platforms with Expected: 2 Actual: 0 in RemoveRange logic. Likely R2R compilation issue. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../tests/X509Certificates/CollectionTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Security.Cryptography/tests/X509Certificates/CollectionTests.cs b/src/libraries/System.Security.Cryptography/tests/X509Certificates/CollectionTests.cs index 92d90268c13a26..23c090321fd04d 100644 --- a/src/libraries/System.Security.Cryptography/tests/X509Certificates/CollectionTests.cs +++ b/src/libraries/System.Security.Cryptography/tests/X509Certificates/CollectionTests.cs @@ -1011,6 +1011,7 @@ public static void X509CertificateCollectionRemoveAt() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/128482", typeof(PlatformDetection), nameof(PlatformDetection.IsReadyToRunCompiled))] public static void X509Certificate2CollectionRemoveRangeArray() { using (X509Certificate2 c1 = new X509Certificate2(TestData.MsCertificate))