X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fsgen-domain-unload.cs;h=b2bfc5e153ea43ec73e6064f6f0e5aef032e6ad8;hb=6fa916095465900a598dd09e4c92feb64b04d9cb;hp=670f218b3fb9ef73cd58ee1fbe190205d39bc4b2;hpb=31c446a1ac1dfad255325a56aa7824d3de2bc23c;p=mono.git diff --git a/mono/tests/sgen-domain-unload.cs b/mono/tests/sgen-domain-unload.cs index 670f218b3fb..b2bfc5e153e 100644 --- a/mono/tests/sgen-domain-unload.cs +++ b/mono/tests/sgen-domain-unload.cs @@ -45,8 +45,9 @@ class Driver { } static void CrossDomainTest (string name, CrossAppDomainDelegate dele) { + TestTimeout timeout = TestTimeout.Start (TimeSpan.FromSeconds(TestTimeout.IsStressTest ? 60 : 5)); Console.WriteLine ("----Testing {0}----", name); - for (int i = 0; i < 20; ++i) { + for (int i = 0; timeout.HaveTimeLeft; ++i) { var ad = AppDomain.CreateDomain (string.Format ("domain-{0}-{1}", name, i)); ad.DoCallBack (dele); AppDomain.Unload (ad); @@ -56,4 +57,4 @@ class Driver { static void Main () { CrossDomainTest ("simple-heap-with-los", Driver.SimpleHeapWithLOS); } -} \ No newline at end of file +}