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

Comparing jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java (file contents):
Revision 1.11 by jsr166, Sat Nov 21 19:31:58 2009 UTC vs.
Revision 1.12 by jsr166, Sat Nov 21 19:44:50 2009 UTC

# Line 1353 | Line 1353 | public class ThreadPoolExecutorSubclassT
1353       * timed invokeAny(c) throws NPE if c has null elements
1354       */
1355      public void testTimedInvokeAny3() throws Exception {
1356 +        final CountDownLatch latch = new CountDownLatch(1);
1357          ExecutorService e = new CustomTPE(2, 2, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
1358          try {
1359              ArrayList<Callable<String>> l = new ArrayList<Callable<String>>();
# Line 1368 | Line 1369 | public class ThreadPoolExecutorSubclassT
1369              shouldThrow();
1370          } catch (NullPointerException success) {
1371          } finally {
1372 +            latch.countDown();
1373              joinPool(e);
1374          }
1375      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines