diff --git a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java index 9198714486..2c43164a7e 100644 --- a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java +++ b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java @@ -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();