--- jsr166/src/test/tck/JSR166TestCase.java 2010/10/11 03:54:10 1.61 +++ jsr166/src/test/tck/JSR166TestCase.java 2010/10/11 08:30:01 1.63 @@ -96,6 +96,9 @@ public class JSR166TestCase extends Test private static final boolean useSecurityManager = Boolean.getBoolean("jsr166.useSecurityManager"); + protected static final boolean expensiveTests = + Boolean.getBoolean("jsr166.expensiveTests"); + /** * If true, report on stdout all "slow" tests, that is, ones that * take more than profileThreshold milliseconds to execute. @@ -128,7 +131,7 @@ public class JSR166TestCase extends Test System.out.printf("%n%s: %d%n", toString(), elapsedMillis); } } - + /** * Runs all JSR166 unit tests using junit.textui.TestRunner */ @@ -804,6 +807,15 @@ public class JSR166TestCase extends Test } } + public Runnable possiblyInterruptedRunnable(final long timeoutMillis) { + return new CheckedRunnable() { + protected void realRun() { + try { + Thread.sleep(timeoutMillis); + } catch (InterruptedException ok) {} + }}; + } + public class MediumPossiblyInterruptedRunnable extends CheckedRunnable { protected void realRun() { try {