build memory snaphost if a leak found

This commit is contained in:
Max Medvedev
2016-02-01 14:33:14 +03:00
parent 99253c6f08
commit 6f804671cd
@@ -74,6 +74,10 @@ public class _LastInSuiteTest extends TestCase {
LeakHunter.checkProjectLeak();
Disposer.assertIsEmpty(true);
}
catch (AssertionError e) {
captureMemorySnapshot();
throw e;
}
catch (Exception e) {
captureMemorySnapshot();
throw e;