--- jsr166/src/test/tck/LinkedBlockingQueueTest.java 2017/05/14 00:56:43 1.72 +++ jsr166/src/test/tck/LinkedBlockingQueueTest.java 2017/05/14 01:30:34 1.73 @@ -449,9 +449,15 @@ public class LinkedBlockingQueueTest ext Thread t = newStartedThread(new CheckedRunnable() { public void realRun() throws InterruptedException { long startTime = System.nanoTime(); - for (int i = 0; i < SIZE; ++i) { + for (int i = 0; i < SIZE; i++) assertEquals(i, (int) q.poll(LONG_DELAY_MS, MILLISECONDS)); - } + + Thread.currentThread().interrupt(); + try { + q.poll(LONG_DELAY_MS, MILLISECONDS); + shouldThrow(); + } catch (InterruptedException success) {} + assertFalse(Thread.interrupted()); pleaseInterrupt.countDown(); try {