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

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

# Line 468 | Line 468 | public class LinkedBlockingQueueTest ext
468          final LinkedBlockingQueue q = new LinkedBlockingQueue(2);
469          Thread t = new Thread(new CheckedRunnable() {
470              public void realRun() throws InterruptedException {
471                assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));
472                assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));
471                  try {
472 +                    assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));
473 +                    assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));
474                      q.poll(LONG_DELAY_MS, MILLISECONDS);
475                      shouldThrow();
476                  } catch (InterruptedException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines