Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2018-10-31 14:46:03 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-10-31 14:46:02 +0300
commit709b46e333860188afc80186a9280f68c8538619 (patch)
tree2e3c722f4844aec61b325bd834ba7baa770c5e4d
parentb2915194221220c531c78e3cde339db38d488378 (diff)
[tests] reduce recursion depth (#11484)mono-5.16.0.209
so it doesn't trigger a stack overflow on Xamarin.iOS with interpreter on a debug build (`CFLAGS=-O0`).
-rw-r--r--mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs b/mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs
index 4c5428f828e..b67c5adfe73 100644
--- a/mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs
+++ b/mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs
@@ -77,12 +77,12 @@ namespace MonoTests.System.Threading.Tasks
{
ParallelTestHelper.Repeat (delegate {
var t = CreateNestedFuture(10);
- var t2 = CreateNestedFuture(100);
- var t3 = CreateNestedFuture(100);
+ var t2 = CreateNestedFuture(20);
+ var t3 = CreateNestedFuture(30);
Assert.AreEqual (11, t.Result);
- Assert.AreEqual (101, t2.Result);
- Assert.AreEqual (101, t3.Result);
+ Assert.AreEqual (21, t2.Result);
+ Assert.AreEqual (31, t3.Result);
}, 50);
}