Skip to content

Commit efd4a3c

Browse files
author
Michael Bogdanov
committed
Print bytecode on test fail
1 parent ce13b3a commit efd4a3c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractCompileKotlinAgainstInlineKotlinTest.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@ public abstract class AbstractCompileKotlinAgainstInlineKotlinTest : AbstractCom
2828

2929
val (factory1, factory2) = doBoxTest(inputFiles)
3030
val allGeneratedFiles = factory1.asList() + factory2.asList()
31-
InlineTestUtil.checkNoCallsToInline(allGeneratedFiles)
3231

33-
val sourceFiles = factory1.getInputFiles() + factory2.getInputFiles()
34-
checkSMAP(sourceFiles, allGeneratedFiles)
32+
try {
33+
InlineTestUtil.checkNoCallsToInline(allGeneratedFiles)
34+
val sourceFiles = factory1.getInputFiles() + factory2.getInputFiles()
35+
checkSMAP(sourceFiles, allGeneratedFiles)
36+
}
37+
catch (e: Throwable) {
38+
System.out.println(factory1.createText() + "\n" + factory2.createText())
39+
throw e
40+
}
3541
}
3642

3743
private fun doBoxTest(files: List<String>): Pair<ClassFileFactory, ClassFileFactory> {

0 commit comments

Comments
 (0)