From ee0fa2220ee7d0611dce6d25fd1b85a8a9dc9604 Mon Sep 17 00:00:00 2001 From: "victor.petukhov" Date: Wed, 12 Dec 2018 17:28:54 +0300 Subject: [PATCH] Fix incomplete printing of runtime exceptions in box tests --- .../tests/org/jetbrains/kotlin/TestExceptionsComparator.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/TestExceptionsComparator.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/TestExceptionsComparator.kt index 5e385155423..216e9a968f5 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/TestExceptionsComparator.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/TestExceptionsComparator.kt @@ -22,12 +22,15 @@ enum class TestsExceptionFilePostfix(val text: String) { sealed class TestsError(val postfix: TestsExceptionFilePostfix) : Error() { abstract val original: Throwable override fun toString() = original.toString() + override fun getStackTrace() = original.stackTrace } class TestsCompilerError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.COMPILER_ERROR) class TestsInfrastructureError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.INFRASTRUCTURE_ERROR) class TestsCompiletimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.COMPILETIME_ERROR) -class TestsRuntimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.RUNTIME_ERROR) +class TestsRuntimeError(override val original: Throwable) : TestsError(TestsExceptionFilePostfix.RUNTIME_ERROR) { + override val cause = original.cause +} private enum class ExceptionType { ANALYZING_EXPRESSION,