From 03e4ec5f1c024dfb3cad557ff543bcbf2db2016e Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 31 Jan 2016 17:36:56 +0300 Subject: [PATCH] PlatformTestCase: set the flag "assertions in test detected" if setUp fails --- .../src/com/intellij/testFramework/PlatformTestCase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java b/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java index 069d7fea3ee4..473ba1f617ad 100644 --- a/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java @@ -647,7 +647,9 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro ourTestTime = DEFAULT_TEST_TIME; try { try { + myAssertionsInTestDetected = true; setUp(); + myAssertionsInTestDetected = false; } catch (Throwable e) { try {