UsefulTestCase: store debug traces for objects disposed in tearDown

This commit is contained in:
peter
2015-11-20 13:20:07 +01:00
parent 22fa3cc16f
commit 3d631c549f
@@ -152,13 +152,13 @@ public abstract class UsefulTestCase extends TestCase {
@Override
protected void tearDown() throws Exception {
Disposer.setDebugMode(oldDisposerDebug);
try {
Disposer.dispose(myTestRootDisposable);
cleanupSwingDataStructures();
cleanupDeleteOnExitHookList();
}
finally {
Disposer.setDebugMode(oldDisposerDebug);
if (shouldContainTempFiles()) {
FileUtil.resetCanonicalTempPathCache(ORIGINAL_TEMP_DIR);
if (hasTmpFilesToKeep()) {