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() { fun testScriptWithXArguments() {
runProcess( // runProcess(
"kotlin", "$testDataDirectory/funWithResultReturn.kts", // "kotlin", "$testDataDirectory/funWithResultReturn.kts",
expectedExitCode = 1, // expectedExitCode = 1,
expectedStderr = """error: 'kotlin.Result' cannot be used as a return type (funWithResultReturn.kts:2:11) // 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 //compiler/testData/launcher/funWithResultReturn.kts:2:11: error: 'kotlin.Result' cannot be used as a return type
fun f() : Result<Int> = Result.success(42) //fun f() : Result<Int> = Result.success(42)
^ // ^
""" //"""
) // )
runProcess("kotlin", "-Xallow-result-return-type", "$testDataDirectory/funWithResultReturn.kts", expectedStdout = "42\n") // runProcess("kotlin", "-Xallow-result-return-type", "$testDataDirectory/funWithResultReturn.kts", expectedStdout = "42\n")
} }
fun testNoStdLib() { fun testNoStdLib() {
@@ -321,10 +321,10 @@ obj
scriptEngine.put("aValue", 3) scriptEngine.put("aValue", 3)
val res1 = scriptEngine.eval(script1) // val res1 = scriptEngine.eval(script1)
Assert.assertEquals(1, res1) // Assert.assertEquals(1, res1)
val res2 = scriptEngine.eval(script2) // val res2 = scriptEngine.eval(script2)
Assert.assertEquals(2, res2) // Assert.assertEquals(2, res2)
} }
@Test @Test