Fix cli testdata for changed diagnostics in K2
This commit is contained in:
committed by
Space Team
parent
7b49acb490
commit
3dc1b26d83
@@ -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")
|
||||
^
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user