From 4b9e20ab8c558dc8b2e8c4245c2ca863d5e32747 Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Tue, 7 Feb 2017 12:48:06 +0300 Subject: [PATCH] Rethrow boxError in case of test failure --- .../kotlin/codegen/AbstractBlackBoxCodegenTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java b/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java index a88291d7475..66c2859202f 100644 --- a/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java +++ b/compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractBlackBoxCodegenTest.java @@ -78,9 +78,10 @@ public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase { try { doLightAnalysisModeTest(wholeFile, files, javaFilesDir); } - catch (Throwable lightAnalysisError) { - throw ExceptionUtilsKt.rethrow(boxError); + catch (Throwable ignored) { } + + throw ExceptionUtilsKt.rethrow(boxError); } doLightAnalysisModeTest(wholeFile, files, javaFilesDir);