8061250: serviceability/dcmd/compiler/CompilerQueueTest.java failed
authorneliasso
Tue, 28 Oct 2014 20:16:08 +0100
changeset 27432 45b98fbc138b
parent 27431 5f970b31939c
child 27433 b276c91c1264
8061250: serviceability/dcmd/compiler/CompilerQueueTest.java failed Summary: Fixed logging to avoid parsing mistake and added test case. Reviewed-by: kvn, twisti
hotspot/test/serviceability/dcmd/compiler/CompilerQueueTest.java
--- a/hotspot/test/serviceability/dcmd/compiler/CompilerQueueTest.java	Tue Oct 28 16:44:39 2014 +0100
+++ b/hotspot/test/serviceability/dcmd/compiler/CompilerQueueTest.java	Tue Oct 28 20:16:08 2014 +0100
@@ -27,6 +27,7 @@
  * @library ..
  * @build DcmdUtil CompilerQueueTest
  * @run main CompilerQueueTest
+ * @run main/othervm -XX:-TieredCompilation CompilerQueueTest
  * @run main/othervm -Xint CompilerQueueTest
  * @summary Test of diagnostic command Compiler.queue
  */
@@ -87,7 +88,9 @@
     }
 
     private static void validateMethodLine(String str)  throws Exception {
-        String name = str.substring(19);
+        // Skip until package/class name begins. Trim to remove whitespace that
+        // may differ.
+        String name = str.substring(14).trim();
         int sep = name.indexOf("::");
         if (sep == -1) {
             throw new Exception("Failed dcmd queue, didn't find separator :: in: " + name);