6776144: java/lang/ThreadGroup/NullThreadName.java fails with Thread group is not destroyed ,fastdebug LINUX
authorchegar
Wed, 23 Nov 2011 12:30:19 +0000
changeset 11038 c5258e10c75b
parent 11037 03c29eb4afa0
child 11039 4ee27839f531
6776144: java/lang/ThreadGroup/NullThreadName.java fails with Thread group is not destroyed ,fastdebug LINUX Reviewed-by: chegar, dholmes Contributed-by: gary.adams@oracle.com
jdk/test/java/lang/ThreadGroup/NullThreadName.java
--- a/jdk/test/java/lang/ThreadGroup/NullThreadName.java	Wed Nov 23 03:40:12 2011 -0800
+++ b/jdk/test/java/lang/ThreadGroup/NullThreadName.java	Wed Nov 23 12:30:19 2011 +0000
@@ -24,7 +24,6 @@
 /*
  * @test
  * @bug 6576763
- * @ignore until hotspot 6776144 bug is resolved
  * @summary (thread) Thread constructors throw undocumented NPE for null name
  */
 
@@ -64,8 +63,8 @@
             try { Thread.sleep(2000); }
             catch (InterruptedException unused) {}
 
-            /* do not wait forever */
-            if (count++ > 5)
+            /* do not wait forever - allow 120 seconds same as jtreg default timeout. */
+            if (count++ > 60)
                 throw new AssertionError("GoodThread is still alive!");
         }