8072403: [TESTBUG] HeapDumpTest and HeapDumpAllTest fails to find jhat in non-JDK runs
Reviewed-by: jbachorik, sla
--- a/hotspot/test/serviceability/dcmd/gc/HeapDumpTest.java Tue Feb 03 12:26:40 2015 +0100
+++ b/hotspot/test/serviceability/dcmd/gc/HeapDumpTest.java Tue Feb 03 12:49:13 2015 +0100
@@ -51,7 +51,7 @@
}
private void verifyHeapDump(String fileName) {
- String jhat = JDKToolFinder.getTestJDKTool("jhat");
+ String jhat = JDKToolFinder.getJDKTool("jhat");
String[] cmd = { jhat, "-parseonly", "true", fileName };
ProcessBuilder pb = new ProcessBuilder(cmd);