From 96217b77ce5495fe6da0d4d27e160e6b978e067d Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Wed, 22 Dec 2021 20:35:34 -0700 Subject: [PATCH] Fix regex test OOM --- .../System.Text.RegularExpressions/tests/Regex.Match.Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Text.RegularExpressions/tests/Regex.Match.Tests.cs b/src/libraries/System.Text.RegularExpressions/tests/Regex.Match.Tests.cs index 3ec9d618b3a704..bea46968f3116c 100644 --- a/src/libraries/System.Text.RegularExpressions/tests/Regex.Match.Tests.cs +++ b/src/libraries/System.Text.RegularExpressions/tests/Regex.Match.Tests.cs @@ -1516,7 +1516,7 @@ public static IEnumerable StressTestDeepNestingOfLoops_TestData() } [OuterLoop("Can take over 10 seconds")] - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] // consumes a lot of memory [MemberData(nameof(StressTestDeepNestingOfLoops_TestData))] public async Task StressTestDeepNestingOfLoops(RegexEngine engine, string begin, string inner, string end, RegexOptions options, string input, int pattern_repetition, int input_repetition) {