Align libgc vcxproj with makefile.
[mono.git] / mono / tests / sgen-new-threads-dont-join-stw-2.cs
index 34dace1c955a22c02f97957ae3c7bf0e2c55683b..41998c7e2866098feb88cadec91684e6a5bd47cd 100644 (file)
@@ -13,7 +13,7 @@ class Driver
                Thread producer = new Thread (new ThreadStart (() => {
                        DateTime start = DateTime.Now;
 
-                       while (DateTime.Now - start < TimeSpan.FromSeconds (30)) {
+                       for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 120 : 5)); timeout.HaveTimeLeft;) {
                                Thread worker = new Thread (new ThreadStart (() => {
                                        HashSet<string> hashset = new HashSet<string> ();
                                        for (int i = 0; i < 50000; ++i) {