From 62712ec2913a9f4a1e2e7d512a4d8b0f3299709b Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Thu, 27 May 2021 21:20:59 +0200 Subject: [PATCH] Remove a failing unnecessary test (#53342) --- .../System.Linq.Expressions/tests/CompilerTests.cs | 24 ---------------------- 1 file changed, 24 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs index fa1bfb3..9f4d1f7 100644 --- a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs @@ -27,30 +27,6 @@ namespace System.Linq.Expressions.Tests Assert.Equal(n, f()); } - [ClassData(typeof(CompilationTypes))] - [OuterLoop("May fail with SO on Debug JIT")] - [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] - public static void CompileDeepTree_NoStackOverflowFast(bool useInterpreter) - { - Expression e = Expression.Constant(0); - - int n = 100; - - for (int i = 0; i < n; i++) - e = Expression.Add(e, Expression.Constant(1)); - - Func f = null; - // Request a stack size of 128KiB to get very small stack. - // This reduces the size of tree needed to risk a stack overflow. - // This though will only risk overflow once, so the outerloop test - // above is still needed. - Thread t = new Thread(() => f = Expression.Lambda>(e).Compile(useInterpreter), 128 * 1024); - t.Start(); - t.Join(); - - Assert.Equal(n, f()); - } - #if FEATURE_COMPILE [Fact] public static void EmitConstantsToIL_NonNullableValueTypes() -- 2.7.4