191 |
|
static volatile TestCase currentTestCase; |
192 |
|
static { |
193 |
|
Runnable checkForWedgedTest = new Runnable() { public void run() { |
194 |
+ |
// avoid spurious reports with enormous runsPerTest |
195 |
+ |
final int timeoutMinutes = Math.max(runsPerTest / 10, 1); |
196 |
|
for (TestCase lastTestCase = currentTestCase;;) { |
197 |
< |
try { MINUTES.sleep(10); } |
197 |
> |
try { MINUTES.sleep(timeoutMinutes); } |
198 |
|
catch (InterruptedException unexpected) { break; } |
199 |
|
if (lastTestCase == currentTestCase) { |
200 |
|
System.err.println |