Tests: do not use hardcoded stdlib jar name
This commit is contained in:
@@ -249,7 +249,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
|
|||||||
|
|
||||||
private val pathToNonexistentRuntimeJar: String
|
private val pathToNonexistentRuntimeJar: String
|
||||||
get() {
|
get() {
|
||||||
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar"
|
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR
|
||||||
myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
||||||
return pathToTempKotlinRuntimeJar
|
return pathToTempKotlinRuntimeJar
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -210,7 +210,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
|
|||||||
|
|
||||||
private val pathToNonexistentRuntimeJar: String
|
private val pathToNonexistentRuntimeJar: String
|
||||||
get() {
|
get() {
|
||||||
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar"
|
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR
|
||||||
PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
||||||
return pathToTempKotlinRuntimeJar
|
return pathToTempKotlinRuntimeJar
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -208,7 +208,7 @@ abstract class AbstractConfigureKotlinTest : PlatformTestCase() {
|
|||||||
|
|
||||||
private val pathToNonexistentRuntimeJar: String
|
private val pathToNonexistentRuntimeJar: String
|
||||||
get() {
|
get() {
|
||||||
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/kotlin-runtime.jar"
|
val pathToTempKotlinRuntimeJar = FileUtil.getTempDirectory() + "/" + PathUtil.KOTLIN_JAVA_STDLIB_JAR
|
||||||
PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
PlatformTestCase.myFilesToDelete.add(File(pathToTempKotlinRuntimeJar))
|
||||||
return pathToTempKotlinRuntimeJar
|
return pathToTempKotlinRuntimeJar
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user