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

Comparing jsr166/src/test/tck/ForkJoinTaskTest.java (file contents):
Revision 1.28 by jsr166, Mon Nov 22 22:45:49 2010 UTC vs.
Revision 1.29 by jsr166, Tue Nov 23 06:33:26 2010 UTC

# Line 99 | Line 99 | public class ForkJoinTaskTest extends JS
99              long t0 = System.nanoTime();
100              assertSame(expected, a.join());
101              assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
102 <            assertTrue(Thread.interrupted());
102 >            Thread.interrupted();
103          }
104  
105          {
# Line 107 | Line 107 | public class ForkJoinTaskTest extends JS
107              long t0 = System.nanoTime();
108              a.quietlyJoin();        // should be no-op
109              assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
110 <            assertTrue(Thread.interrupted());
110 >            Thread.interrupted();
111          }
112  
113          assertFalse(a.cancel(false));
# Line 135 | Line 135 | public class ForkJoinTaskTest extends JS
135              a.join();
136              shouldThrow();
137          } catch (CancellationException success) {
138            assertTrue(Thread.interrupted());
138          } catch (Throwable fail) { threadUnexpectedException(fail); }
139 +        Thread.interrupted();
140  
141          {
142              long t0 = System.nanoTime();
# Line 172 | Line 172 | public class ForkJoinTaskTest extends JS
172              a.join();
173              shouldThrow();
174          } catch (Throwable expected) {
175            assertTrue(Thread.interrupted());
175              assertSame(t, expected);
176          }
177 +        Thread.interrupted();
178  
179          {
180              long t0 = System.nanoTime();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines