--- jsr166/src/test/tck/ThreadPoolExecutorTest.java 2010/11/17 23:12:31 1.38 +++ jsr166/src/test/tck/ThreadPoolExecutorTest.java 2010/11/30 02:12:52 1.39 @@ -406,11 +406,12 @@ public class ThreadPoolExecutorTest exte try { p.execute(new CheckedRunnable() { public void realRun() throws InterruptedException { - threadStarted.countDown(); assertFalse(p.isTerminated()); + threadStarted.countDown(); done.await(); }}); assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS)); + assertFalse(p.isTerminating()); done.countDown(); } finally { try { p.shutdown(); } catch (SecurityException ok) { return; }