[cvs] / jsr166 / src / test / tck / ArrayBlockingQueueTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayBlockingQueueTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.87, Sun May 14 00:56:43 2017 UTC revision 1.88, Sun May 14 01:30:34 2017 UTC
# Line 498  Line 498 
498          Thread t = newStartedThread(new CheckedRunnable() {          Thread t = newStartedThread(new CheckedRunnable() {
499              public void realRun() throws InterruptedException {              public void realRun() throws InterruptedException {
500                  long startTime = System.nanoTime();                  long startTime = System.nanoTime();
501                  for (int i = 0; i < SIZE; ++i) {                  for (int i = 0; i < SIZE; i++)
502                      assertEquals(i, (int) q.poll(LONG_DELAY_MS, MILLISECONDS));                      assertEquals(i, (int) q.poll(LONG_DELAY_MS, MILLISECONDS));
503                  }  
504                    Thread.currentThread().interrupt();
505                    try {
506                        q.poll(LONG_DELAY_MS, MILLISECONDS);
507                        shouldThrow();
508                    } catch (InterruptedException success) {}
509                    assertFalse(Thread.interrupted());
510    
511                  pleaseInterrupt.countDown();                  pleaseInterrupt.countDown();
512                  try {                  try {

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8