提交 c8333c59 authored 作者: Noel Grandin's avatar Noel Grandin

revert some debug code

上级 00a114a7
......@@ -39,7 +39,6 @@ import org.h2.store.fs.FileUtils;
import org.h2.test.utils.ProxyCodeGenerator;
import org.h2.test.utils.ResultVerifier;
import org.h2.tools.DeleteDbFiles;
import com.peralex.utilities.ui.HeapDumper;
/**
* The base class for all tests.
......@@ -155,8 +154,6 @@ public abstract class TestBase {
throw new AssertionError("ERROR");
}
if (e instanceof OutOfMemoryError) {
new File("h2-heap.hprof").delete();
HeapDumper.dumpHeap("h2-heap.hprof", false);
throw (OutOfMemoryError) e;
}
}
......
......@@ -5,7 +5,6 @@
*/
package org.h2.test.db;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
......@@ -14,7 +13,6 @@ import java.sql.Statement;
import java.util.Random;
import org.h2.test.TestBase;
import org.h2.util.Utils;
import com.peralex.utilities.ui.HeapDumper;
/**
* Tests the memory usage of the cache.
......@@ -99,8 +97,6 @@ public class TestMemoryUsage extends TestBase {
}
usedNow = Utils.getMemoryUsed();
if (usedNow > used * 1.3) {
new File("h2-heap-create-drop.hprof").delete();
HeapDumper.dumpHeap("h2-heap-create-drop.hprof", false);
assertEquals(used, usedNow);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论