Mute some script tests according to KT-44471

This commit is contained in:
Dmitriy Novozhilov
2021-01-21 13:58:23 +03:00
parent 95aa8dc85a
commit c0bc492029
2 changed files with 14 additions and 14 deletions
@@ -237,16 +237,16 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
}
fun testScriptWithXArguments() {
runProcess(
"kotlin", "$testDataDirectory/funWithResultReturn.kts",
expectedExitCode = 1,
expectedStderr = """error: 'kotlin.Result' cannot be used as a return type (funWithResultReturn.kts:2:11)
compiler/testData/launcher/funWithResultReturn.kts:2:11: error: 'kotlin.Result' cannot be used as a return type
fun f() : Result<Int> = Result.success(42)
^
"""
)
runProcess("kotlin", "-Xallow-result-return-type", "$testDataDirectory/funWithResultReturn.kts", expectedStdout = "42\n")
// runProcess(
// "kotlin", "$testDataDirectory/funWithResultReturn.kts",
// expectedExitCode = 1,
// expectedStderr = """error: 'kotlin.Result' cannot be used as a return type (funWithResultReturn.kts:2:11)
//compiler/testData/launcher/funWithResultReturn.kts:2:11: error: 'kotlin.Result' cannot be used as a return type
//fun f() : Result<Int> = Result.success(42)
// ^
//"""
// )
// runProcess("kotlin", "-Xallow-result-return-type", "$testDataDirectory/funWithResultReturn.kts", expectedStdout = "42\n")
}
fun testNoStdLib() {