--- jsr166/src/test/tck/CyclicBarrierTest.java 2011/03/15 19:47:06 1.17 +++ jsr166/src/test/tck/CyclicBarrierTest.java 2011/05/15 16:56:41 1.19 @@ -120,7 +120,7 @@ public class CyclicBarrierTest extends J t1.start(); t2.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t1.interrupt(); t1.join(); t2.join(); @@ -143,7 +143,7 @@ public class CyclicBarrierTest extends J t1.start(); t2.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t1.interrupt(); t1.join(); t2.join(); @@ -152,7 +152,7 @@ public class CyclicBarrierTest extends J /** * A timeout in timed await throws TimeoutException */ - public void testAwait3_TimeOutException() throws InterruptedException { + public void testAwait3_TimeoutException() throws InterruptedException { final CyclicBarrier c = new CyclicBarrier(2); Thread t = new ThreadShouldThrow(TimeoutException.class) { public void realRun() throws Exception { @@ -222,7 +222,7 @@ public class CyclicBarrierTest extends J t1.start(); t2.start(); - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); c.reset(); t1.join(); t2.join(); @@ -277,7 +277,7 @@ public class CyclicBarrierTest extends J t.start(); for (int i = 0; i < 4; i++) { - Thread.sleep(SHORT_DELAY_MS); + delay(SHORT_DELAY_MS); t.interrupt(); } done.set(true);