Add print of detailed stack trace to NonFir modularized test

This commit is contained in:
Dmitriy Novozhilov
2019-11-13 12:57:08 +03:00
parent a235dd2891
commit 6a3c07688f
@@ -36,7 +36,16 @@ class NonFirResolveModularizedTotalKotlinTest : AbstractModularizedTest() {
val project = environment.project
val time = measureNanoTime {
KotlinToJVMBytecodeCompiler.analyze(environment, null)
try {
KotlinToJVMBytecodeCompiler.analyze(environment, null)
} catch (e: Throwable) {
var exception: Throwable? = e
while (exception != null && exception != exception.cause) {
exception.printStackTrace()
exception = exception.cause
}
throw e
}
}
files += environment.getSourceFiles().size