[tests] Bump timeouts on sgen tests
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 10 Apr 2017 10:43:09 +0000 (13:43 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Mon, 10 Apr 2017 12:22:49 +0000 (15:22 +0300)
Tests that have been known to regularly fail in the past.

mono/tests/sgen-domain-unload-2.cs
mono/tests/sgen-new-threads-collect.cs
mono/tests/sgen-new-threads-dont-join-stw-2.cs
mono/tests/sgen-new-threads-dont-join-stw.cs

index a27b22af907fb0f889bfa604e4071d4af262c203..d63cd62d9eb4ab3a77cff750a629dc3d0bb25dda 100644 (file)
@@ -32,7 +32,7 @@ class Driver {
 
                int iterations = 0;
 
-               for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 1)); timeout.HaveTimeLeft;) {
+               for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 120 : 5)); timeout.HaveTimeLeft;) {
                        var ad = AppDomain.CreateDomain ("domain_" + iterations);
                        ad.DoCallBack (new CrossAppDomainDelegate (AllocStuff));
                        AppDomain.Unload (ad);
index ed6e75c7d51f7f0dfe2031337268aae0d3b89da4..d76b1d552906e131325ad6c08f0defd76c7a64ba 100644 (file)
@@ -11,7 +11,7 @@ class Driver
        {
                int gcCount = 0;
                int joinCount = 0;
-               TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 1));
+               TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 5));
 
                Thread gcThread = new Thread (() => {
                        while (timeout.HaveTimeLeft) {
index a9abf829b703e81348562b4c2bf78190b48ea0d0..41998c7e2866098feb88cadec91684e6a5bd47cd 100644 (file)
@@ -13,7 +13,7 @@ class Driver
                Thread producer = new Thread (new ThreadStart (() => {
                        DateTime start = DateTime.Now;
 
-                       for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 1)); timeout.HaveTimeLeft;) {
+                       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) {
index 12750c6608962d495a1dfa9eba08d4caeca0e1b5..79f0a259f40f8496e0a7a0eee87d9859f2ae1016 100644 (file)
@@ -46,7 +46,7 @@ class T {
     static void Main (string[] args) {
         int iterations = 0;
 
-        for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 1)); timeout.HaveTimeLeft;)
+        for (TestTimeout timeout = TestTimeout.Start(TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 120 : 5)); timeout.HaveTimeLeft;)
         {
             count = 0;