提交 0478efb6 编写于 作者: K kohsuke

override the thread name to make the thread dump more useful, especially in case of a hang.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27302 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f68ab9ca
......@@ -222,6 +222,19 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
protected HudsonTestCase() {
}
@Override
public void runBare() throws Throwable {
// override the thread name to make the thread dump more useful.
Thread t = Thread.currentThread();
String o = getClass().getName()+'.'+t.getName();
t.setName("Executing "+getName());
try {
super.runBare();
} finally {
t.setName(o);
}
}
@Override
protected void setUp() throws Exception {
env.pin();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册