[tests] Don't starve the main thread by doing GCs
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 10 May 2017 21:12:52 +0000 (00:12 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Wed, 10 May 2017 21:15:55 +0000 (00:15 +0300)
commitc7e4ef422e9cd349f3ea162a72fdaac5846378d6
treec61be07c124eac4447ec9b7d724724d56459403d
parent0f952a7adf039f51e218b02e887b85f6807dd0d1
[tests] Don't starve the main thread by doing GCs

Thread.Yield doesn't guarantee that the thread doing GCs won't do it excessively, leading to significant variances in test run time.

Decrease number of iterations since these tests can take around 1 min.
mono/tests/thread-suspend-selfsuspended.cs
mono/tests/thread-suspend-suspended.cs