Set java.class.path property in runner and loader
#KT-24991 fixed
This commit is contained in:
@@ -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"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user