提交 2038f5f6 authored 作者: Thomas Mueller's avatar Thomas Mueller

Test.

上级 1d6fcb23
...@@ -79,7 +79,6 @@ public class TestCrashAPI extends TestBase implements Runnable { ...@@ -79,7 +79,6 @@ public class TestCrashAPI extends TestBase implements Runnable {
TestBase.createCaller().init().test(); TestBase.createCaller().init().test();
} }
@SuppressWarnings("deprecation")
public void run() { public void run() {
while (--maxWait > 0) { while (--maxWait > 0) {
try { try {
...@@ -94,6 +93,10 @@ public class TestCrashAPI extends TestBase implements Runnable { ...@@ -94,6 +93,10 @@ public class TestCrashAPI extends TestBase implements Runnable {
stopped = true; stopped = true;
objects.clear(); objects.clear();
if (running) { if (running) {
println("stopping main thread:");
for (StackTraceElement e : mainThread.getStackTrace()) {
println(e.toString());
}
mainThread.stop(new SQLException("stop")); mainThread.stop(new SQLException("stop"));
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论