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

Comparing jsr166/src/test/tck/ScheduledExecutorTest.java (file contents):
Revision 1.34 by jsr166, Mon Oct 11 15:46:40 2010 UTC vs.
Revision 1.36 by jsr166, Tue Nov 30 02:12:52 2010 UTC

# Line 485 | Line 485 | public class ScheduledExecutorTest exten
485          try {
486              p.execute(new CheckedRunnable() {
487                  public void realRun() throws InterruptedException {
488                    threadStarted.countDown();
488                      assertFalse(p.isTerminated());
489 +                    threadStarted.countDown();
490                      done.await();
491                  }});
492              assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
493 +            assertFalse(p.isTerminating());
494              done.countDown();
495          } finally {
496              try { p.shutdown(); } catch (SecurityException ok) { return; }
# Line 509 | Line 510 | public class ScheduledExecutorTest exten
510              assertFalse(p.isTerminating());
511              p.execute(new CheckedRunnable() {
512                  public void realRun() throws InterruptedException {
512                    threadStarted.countDown();
513                      assertFalse(p.isTerminating());
514 +                    threadStarted.countDown();
515                      done.await();
516                  }});
517              assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines