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

Comparing jsr166/src/test/tck/ForkJoinPool8Test.java (file contents):
Revision 1.11 by dl, Sun Jul 21 22:24:18 2013 UTC vs.
Revision 1.13 by jsr166, Mon Jul 22 18:01:03 2013 UTC

# Line 1484 | Line 1484 | public class ForkJoinPool8Test extends J
1484          checkInvoke(a);
1485      }
1486  
1487
1487      /**
1488       * awaitQuiescent by a worker is equivalent in effect to
1489       * ForkJoinTask.helpQuiesce()
1490 <     */
1490 >     */
1491      public void testAwaitQuiescent1() throws Exception {
1492          final ForkJoinPool p = new ForkJoinPool();
1493          try {
# Line 1513 | Line 1512 | public class ForkJoinPool8Test extends J
1512                          assertEquals(0, ForkJoinTask.getQueuedTaskCount());
1513                          try {
1514                              assertEquals(21, f.result);
1515 <                        } catch (Throwable fail) {
1516 <                            threadFail(fail.getMessage());
1515 >                        } catch (Throwable fail) {
1516 >                            threadFail(fail.getMessage());
1517                          }
1518                      }
1519                  };
# Line 1541 | Line 1540 | public class ForkJoinPool8Test extends J
1540              joinPool(p);
1541          }
1542      }
1543 <
1543 >
1544      /**
1545       * awaitQuiescent returns when pool isQuiescent() or the indicated
1546       * timeout elapse
1547 <     */  
1547 >     */
1548      public void testAwaitQuiescent2() throws Exception {
1549          final ForkJoinPool p = new ForkJoinPool();
1550          try {
# Line 1597 | Line 1596 | public class ForkJoinPool8Test extends J
1596          }
1597      }
1598  
1600
1599   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines