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

Comparing jsr166/src/test/tck/CyclicBarrierTest.java (file contents):
Revision 1.21 by jsr166, Sat May 28 14:52:11 2011 UTC vs.
Revision 1.22 by dl, Sun May 29 13:16:40 2011 UTC

# Line 234 | Line 234 | public class CyclicBarrierTest extends J
234       * BrokenBarrierException
235       */
236      public void testReset_BrokenBarrier() throws InterruptedException {
237 +        Thread.interrupted(); // ensure current thread not interrupted
238          final CyclicBarrier c = new CyclicBarrier(3);
239          final CountDownLatch pleaseReset = new CountDownLatch(2);
240          Thread t1 = new ThreadShouldThrow(BrokenBarrierException.class) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines