From ee5ede08c16d04ca76e9ca51ba454f2093ed0772 Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Mon, 3 Dec 2018 10:18:59 +0300 Subject: [PATCH] Tests: do not use hardcoded stdlib jar name --- .../kotlin/idea/configuration/AbstractConfigureKotlinTest.kt | 2 +- .../idea/configuration/AbstractConfigureKotlinTest.kt.173 | 2 +- .../idea/configuration/AbstractConfigureKotlinTest.kt.181 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt index 16a65845444..eeb7fb87edd 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt @@ -249,7 +249,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() { private val pathToNonexistentRuntimeJar: String get() { - val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar" + val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR myFilesToDelete.add(File(pathToTempKotlinRuntimeJar)) return pathToTempKotlinRuntimeJar } diff --git a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.173 b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.173 index ffa6c40d6ce..f3d2c438de6 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.173 +++ b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.173 @@ -210,7 +210,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() { private val pathToNonexistentRuntimeJar: String get() { - val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar" + val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar)) return pathToTempKotlinRuntimeJar } diff --git a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.181 b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.181 index 46f2a10fae6..ad78c79bb86 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.181 +++ b/idea/tests/org/jetbrains/kotlin/idea/configuration/AbstractConfigureKotlinTest.kt.181 @@ -208,7 +208,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() { private val pathToNonexistentRuntimeJar: String get() { - val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar" + val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar)) return pathToTempKotlinRuntimeJar }