Set java.class.path property in runner and loader

#KT-24991 fixed
This commit is contained in:
Ilya Chernikov
2019-08-27 11:23:11 +02:00
parent 08720a3dc6
commit 31c56d7794
6 changed files with 38 additions and 10 deletions
@@ -79,12 +79,12 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
)
}
fun testKotlincJvmSimpleScript() {
fun testKotlincJvmScriptWithClassPathFromSysProp() {
runProcess(
"kotlinc-jvm",
"-script",
"$testDataDirectory/helloWorld.kts",
expectedStdout = "Hello!\n"
"$testDataDirectory/classPathPropTest.kts",
expectedStdout = "kotlin-compiler.jar\n"
)
}
@@ -102,7 +102,7 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
"kotlin",
"-cp", listOf(tmpdir.path, kotlinTestJar.path).joinToString(File.pathSeparator),
"ContextClassLoaderTester",
expectedStdout = "ok\n"
expectedStdout = "${kotlinTestJar.name}\n"
)
}