Skip to content

Commit

Permalink
[tests] reduce recursion depth (#11484)
Browse files Browse the repository at this point in the history
so it doesn't trigger a stack overflow on Xamarin.iOS with interpreter on a debug build (`CFLAGS=-O0`).
  • Loading branch information
monojenkins authored and akoeplinger committed Oct 31, 2018
1 parent b291519 commit 709b46e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mcs/class/corlib/Test/System.Threading.Tasks/Task_T_Test.cs
Expand Up @@ -77,12 +77,12 @@ public void NestedFutureTest ()
{
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);
}

Expand Down

0 comments on commit 709b46e

Please sign in to comment.