Fix cli testdata for changed diagnostics in K2

This commit is contained in:
Ilya Chernikov
2023-08-23 12:37:51 +02:00
committed by Space Team
parent 7b49acb490
commit 3dc1b26d83
37 changed files with 64 additions and 61 deletions
@@ -268,7 +268,7 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
runProcess(
"kotlin", "-no-stdlib", "-e", "println(42)",
expectedExitCode = 1,
expectedStderr = """script.kts:1:1: error: unresolved reference: println
expectedStderr = """script.kts:1:1: error: unresolved reference 'println'.
println(42)
^
"""
@@ -318,7 +318,7 @@ println(42)
)
runProcess(
"kotlin", "-Xallow-any-scripts-in-source-roots", "-howtorun", ".kts", "$testDataDirectory/noInline.myscript",
expectedExitCode = 1, expectedStderr = """compiler/testData/launcher/noInline.myscript:1:7: error: unresolved reference: CompilerOptions
expectedExitCode = 1, expectedStderr = """compiler/testData/launcher/noInline.myscript:1:7: error: unresolved reference 'CompilerOptions'.
@file:CompilerOptions("-Xno-inline")
^
"""