From 345eadfcd44c83add410d4ea8ebc394b4699c908 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Fri, 27 Mar 2026 09:21:45 +0100 Subject: [PATCH] NRBF test fix: we need optimized library --- src/libraries/System.Formats.Nrbf/tests/EdgeCaseTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.Formats.Nrbf/tests/EdgeCaseTests.cs b/src/libraries/System.Formats.Nrbf/tests/EdgeCaseTests.cs index 72f3b9aad9ad8a..8c8c07f3e2a9c7 100644 --- a/src/libraries/System.Formats.Nrbf/tests/EdgeCaseTests.cs +++ b/src/libraries/System.Formats.Nrbf/tests/EdgeCaseTests.cs @@ -65,7 +65,9 @@ public void ArraysOfStringsCanContainMemberReferences(FormatterTypeStyle typeFor [InlineData(100)] [InlineData(64_001)] [InlineData(127_000)] +#if RELEASE // We need the library to be optimized to be able to handle such a big array in a reasonable time. [InlineData(2147483591)] // Array.MaxLength +#endif public void CanReadArrayOfAnySize(int length) { if (length == 2147483591 && (!PlatformDetection.Is64BitProcess || !PlatformDetection.IsReleaseRuntime || !PlatformDetection.IsNetCore))