Skip to content

Commit 1a558ef

Browse files
committed
Fix the polyrec.cs test based on PR feedback
Based on PR feedback and Jeremy's check-in of the Roslyn generator test logic I can now fully update the test so that it no longer contains the Main method and it just implements the [Fact]-marked test entrypoint. Thanks Tomas
1 parent b16344c commit 1a558ef

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/tests/Loader/regressions/polyrec/polyrec.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// and niters it the number of type/method instantiations to create each thread
99
using System;
1010
using System.Threading;
11+
using Xunit;
1112

1213
// Spice things up a bit with some mutual recursion between instantiations
1314
class C<T>
@@ -63,7 +64,7 @@ public static void Start2()
6364
genmeth2<string>(ninsts);
6465
}
6566

66-
public static int Test(int threads, int insts)
67+
public static void Test(int threads, int insts)
6768
{
6869
nthreads = threads;
6970
ninsts = insts;
@@ -74,13 +75,13 @@ public static int Test(int threads, int insts)
7475
t.Name = "Thread " + i;
7576
t.Start();
7677
}
77-
78+
7879
Console.WriteLine("Main thread exited");
79-
return 100;
8080
}
81-
82-
public static int Main()
81+
82+
[Fact]
83+
public static void Test_4_50()
8384
{
84-
return Test(4, 50);
85+
Test(4, 50);
8586
}
8687
}

0 commit comments

Comments
 (0)