From 4d61d4995bb3c1d33028652adebd17041f4f5cd9 Mon Sep 17 00:00:00 2001 From: Vladislav Rassokhin Date: Wed, 18 Dec 2019 18:13:57 +0300 Subject: [PATCH] _LastInSuiteTest.testProjectLeak should publish compressed heapdumps GitOrigin-RevId: a27b6e70ae9196a4888a8bc7a1a9e51f2b310497 --- .../com/intellij/testFramework/TestApplicationManager.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt b/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt index 551c19a2bcfb..fb7858a64387 100644 --- a/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt +++ b/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt @@ -284,11 +284,11 @@ fun disposeApplicationAndCheckForLeaks() { LeakHunter.checkNonDefaultProjectLeak() } catch (e: AssertionError) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("leakedProjects") throw e } catch (e: Exception) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("leakedProjects") throw e } } @@ -302,11 +302,11 @@ fun disposeApplicationAndCheckForLeaks() { Disposer.assertIsEmpty(true) } catch (e: AssertionError) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("disposerNonEmpty") throw e } catch (e: Exception) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("disposerNonEmpty") throw e } }