754 |
|
*/ |
755 |
|
public void threadRecordFailure(Throwable t) { |
756 |
|
System.err.println(t); |
757 |
< |
dumpTestThreads(); |
758 |
< |
threadFailure.compareAndSet(null, t); |
757 |
> |
if (threadFailure.compareAndSet(null, t)) |
758 |
> |
dumpTestThreads(); |
759 |
|
} |
760 |
|
|
761 |
|
public void setUp() { |
1456 |
|
} catch (InterruptedException fail) { |
1457 |
|
threadUnexpectedException(fail); |
1458 |
|
} |
1459 |
< |
Thread.State state; |
1460 |
< |
if ((state = t.getState()) != Thread.State.TERMINATED) { |
1461 |
< |
t.interrupt(); |
1462 |
< |
threadFail("timed out waiting for thread to terminate; " |
1463 |
< |
+ "state=" + state); |
1459 |
> |
Thread.State state; |
1460 |
> |
if ((state = t.getState()) != Thread.State.TERMINATED) { |
1461 |
> |
t.interrupt(); |
1462 |
> |
threadFail("timed out waiting for thread to terminate; " |
1463 |
> |
+ "state=" + state); |
1464 |
|
} |
1465 |
|
} |
1466 |
|
|