From 0d9364c1dd6ffc8e6f78de541cedbd951b27b26c Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Tue, 14 Apr 2020 13:37:47 +0700 Subject: [PATCH] [Gradle, native] Make tests tolerate to stacktrace format changes The K/N compiler changed the way in which inline functions are shown in stacktraces. When an exception is thrown from an inline function, the stacktrace refers to a line in the body of the inline function while in 1.3.7x it referred to a line when the inline function is called. This patch gets rid of inline functions in the corresponding test to make it independent on such changes in the stacktrace format. --- .../kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt index b008be9a210..d1afd606be2 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt @@ -1605,7 +1605,7 @@ class NewMultiplatformIT : BaseGradleIT() { """ @Test fun fail() { - error("FAILURE!") + throw IllegalStateException("FAILURE!") } """.trimIndent() )