ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.156 by jsr166, Sat Oct 3 21:09:42 2015 UTC vs.
Revision 1.157 by jsr166, Sat Oct 3 22:20:05 2015 UTC

# Line 191 | Line 191 | public class JSR166TestCase extends Test
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines