LV20: fix LauncherScriptTest testdata

note: the follow-up ussue for one of the changes - KT-60865
This commit is contained in:
Ilya Chernikov
2023-08-01 15:45:47 +02:00
committed by Space Team
parent ab2053df4b
commit 137dfbaca4
@@ -205,7 +205,6 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
"-a", "-a",
"b", "b",
expectedStdout = "-a, b\n", expectedStdout = "-a, b\n",
expectedStderr = "warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features\n"
) )
} }
@@ -272,9 +271,6 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
expectedStderr = """script.kts:1:1: error: unresolved reference: println expectedStderr = """script.kts:1:1: error: unresolved reference: println
println(42) println(42)
^ ^
script.kts:1:1: error: no script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.
println(42)
^
""" """
) )
} }
@@ -539,7 +535,6 @@ println(42)
"-cp", ".", "-d", ".", "-language-version", "2.0", file2kt.absolutePath, "-cp", ".", "-d", ".", "-language-version", "2.0", file2kt.absolutePath,
workDirectory = tmpdir, workDirectory = tmpdir,
expectedStdout = "", expectedStdout = "",
expectedStderr = "warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features\n"
) )
} }
} }