changeset 13974:727255af5ed4

8152005: sun/misc/SunMiscSignalTest.java failed intermittently Summary: extend timeout and retry Reviewed-by: darcy
author rriggs
date Wed, 30 Mar 2016 12:47:54 -0400
parents 380afcaf1507
children 81b03502e5e7
files test/sun/misc/SunMiscSignalTest.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/misc/SunMiscSignalTest.java	Tue Mar 29 17:06:33 2016 -0700
+++ b/test/sun/misc/SunMiscSignalTest.java	Wed Mar 30 12:47:54 2016 -0400
@@ -330,6 +330,12 @@
         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;");