8152005: sun/misc/SunMiscSignalTest.java failed intermittently
Extend timeout and retry Reviewed-by: darcy
This commit is contained in:
parent
4c3bc4f31f
commit
3302f7b0fd
@ -330,6 +330,12 @@ public class SunMiscSignalTest {
|
||||
Signal.raise(signal);
|
||||
boolean handled = handler.semaphore()
|
||||
.tryAcquire(Utils.adjustTimeout(100L), TimeUnit.MILLISECONDS);
|
||||
if (!handled) {
|
||||
// For debug try again
|
||||
printf("Second try to see signal");
|
||||
handled = handler.semaphore()
|
||||
.tryAcquire(Utils.adjustTimeout(2L), TimeUnit.SECONDS);
|
||||
}
|
||||
Assert.assertEquals(handled, !RUNNING_WITH_Xrs,
|
||||
"raising s.m.Signal did not get a callback;");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user