From efd4a3ce84a63042f5d778a2d83a6bf4665a738c Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Wed, 8 Apr 2015 16:26:53 +0300 Subject: [PATCH] Print bytecode on test fail --- .../AbstractCompileKotlinAgainstInlineKotlinTest.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractCompileKotlinAgainstInlineKotlinTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractCompileKotlinAgainstInlineKotlinTest.kt index a23e8c695ae..d156b80d031 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractCompileKotlinAgainstInlineKotlinTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractCompileKotlinAgainstInlineKotlinTest.kt @@ -28,10 +28,16 @@ public abstract class AbstractCompileKotlinAgainstInlineKotlinTest : AbstractCom val (factory1, factory2) = doBoxTest(inputFiles) val allGeneratedFiles = factory1.asList() + factory2.asList() - InlineTestUtil.checkNoCallsToInline(allGeneratedFiles) - val sourceFiles = factory1.getInputFiles() + factory2.getInputFiles() - checkSMAP(sourceFiles, allGeneratedFiles) + try { + InlineTestUtil.checkNoCallsToInline(allGeneratedFiles) + val sourceFiles = factory1.getInputFiles() + factory2.getInputFiles() + checkSMAP(sourceFiles, allGeneratedFiles) + } + catch (e: Throwable) { + System.out.println(factory1.createText() + "\n" + factory2.createText()) + throw e + } } private fun doBoxTest(files: List): Pair {