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

Comparing jsr166/src/test/tck/ReentrantLockTest.java (file contents):
Revision 1.31 by jsr166, Sat Nov 21 02:33:20 2009 UTC vs.
Revision 1.32 by jsr166, Mon Nov 30 08:31:09 2009 UTC

# Line 270 | Line 270 | public class ReentrantLockTest extends J
270              }});
271  
272          t.start();
273 +        Thread.sleep(SHORT_DELAY_MS);
274          t.interrupt();
275          t.join();
276      }
# Line 370 | Line 371 | public class ReentrantLockTest extends J
371          lock.lockInterruptibly();
372          Thread t = new Thread(new InterruptedLockRunnable(lock));
373          t.start();
374 +        Thread.sleep(SHORT_DELAY_MS);
375          t.interrupt();
376          assertTrue(lock.isLocked());
377          assertTrue(lock.isHeldByCurrentThread());
# Line 774 | Line 776 | public class ReentrantLockTest extends J
776          Thread t = new Thread(new CheckedInterruptedRunnable() {
777              public void realRun() throws InterruptedException {
778                  lock.lock();
779 <                c.awaitNanos(1000 * 1000 * 1000); // 1 sec
779 >                c.awaitNanos(LONG_DELAY_MS * 1000L * 1000L);
780              }});
781  
782          t.start();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines