--- a/jdk/test/sun/tools/jhsdb/BasicLauncherTest.java Thu Aug 25 12:24:16 2016 +0900
+++ b/jdk/test/sun/tools/jhsdb/BasicLauncherTest.java Fri Aug 26 13:11:39 2016 +0300
@@ -31,13 +31,10 @@
* @run main BasicLauncherTest
*/
-import static jdk.testlibrary.Asserts.assertTrue;
-
import java.io.BufferedReader;
import java.io.IOException;
import java.io.OutputStream;
import java.io.InputStreamReader;
-import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;
@@ -197,21 +194,6 @@
Arrays.asList(toolArgs));
}
- public static void testHeapDump() throws IOException {
- File dump = new File("jhsdb.jmap.dump." +
- System.currentTimeMillis() + ".hprof");
- if (dump.exists()) {
- dump.delete();
- }
- dump.deleteOnExit();
-
- launch("heap written to", null, "jmap",
- "--binaryheap", "--dumpfile=" + dump.getAbsolutePath());
-
- assertTrue(dump.exists() && dump.isFile(),
- "Could not create dump file " + dump.getAbsolutePath());
- }
-
public static void main(String[] args)
throws IOException {
@@ -230,8 +212,6 @@
"System Properties info not available", "jinfo");
launch("java.threads", null, "jsnap");
- testHeapDump();
-
// The test throws RuntimeException on error.
// IOException is thrown if LingeredApp can't start because of some bad
// environment condition