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

Comparing jsr166/src/test/tck/LinkedBlockingDequeTest.java (file contents):
Revision 1.22 by jsr166, Wed Aug 25 01:44:48 2010 UTC vs.
Revision 1.23 by dl, Wed Sep 29 12:33:48 2010 UTC

# Line 769 | Line 769 | public class LinkedBlockingDequeTest ext
769          final LinkedBlockingDeque q = new LinkedBlockingDeque(2);
770          Thread t = new Thread(new CheckedRunnable() {
771              public void realRun() throws InterruptedException {
772                assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));
773                assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));
772                  try {
773 +                    assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));
774 +                    assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));
775                      q.poll(LONG_DELAY_MS, MILLISECONDS);
776                      shouldThrow();
777                  } catch (InterruptedException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines