--- jsr166/src/test/tck/ReentrantLockTest.java 2009/11/21 02:33:20 1.31 +++ jsr166/src/test/tck/ReentrantLockTest.java 2009/11/30 08:31:09 1.32 @@ -270,6 +270,7 @@ public class ReentrantLockTest extends J }}); t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); t.join(); } @@ -370,6 +371,7 @@ public class ReentrantLockTest extends J lock.lockInterruptibly(); Thread t = new Thread(new InterruptedLockRunnable(lock)); t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); assertTrue(lock.isLocked()); assertTrue(lock.isHeldByCurrentThread()); @@ -774,7 +776,7 @@ public class ReentrantLockTest extends J Thread t = new Thread(new CheckedInterruptedRunnable() { public void realRun() throws InterruptedException { lock.lock(); - c.awaitNanos(1000 * 1000 * 1000); // 1 sec + c.awaitNanos(LONG_DELAY_MS * 1000L * 1000L); }}); t.start();