--- jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2006/01/29 21:17:38 1.25 +++ jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2006/05/18 10:29:23 1.27 @@ -203,7 +203,9 @@ public class ReentrantReadWriteLockTest try { lock.writeLock().lock(); t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); + Thread.sleep(SHORT_DELAY_MS); lock.writeLock().unlock(); t.join(); } catch(Exception e){ @@ -249,7 +251,9 @@ public class ReentrantReadWriteLockTest }); try { t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); + Thread.sleep(SHORT_DELAY_MS); lock.writeLock().unlock(); t.join(); } catch(Exception e){ @@ -834,7 +838,9 @@ public class ReentrantReadWriteLockTest }); try { t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); + Thread.sleep(SHORT_DELAY_MS); t.join(); lock.writeLock().unlock(); } catch(Exception e){ @@ -864,6 +870,7 @@ public class ReentrantReadWriteLockTest }); try { t.start(); + Thread.sleep(SHORT_DELAY_MS); t.interrupt(); t.join(); lock.writeLock().unlock();