Mute some script tests according to KT-44471
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
+4
-4
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user