[Test] Fix various tests according to switching to kotlin 1.5
This commit is contained in:
@@ -3,6 +3,7 @@ Buildfile: [TestData]/build.xml
|
||||
|
||||
build:
|
||||
[kotlinc] Compiling [[TestData]/main.kt] => [[Temp]/hello.jar]
|
||||
[kotlinc] warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||
[kotlinc] [TestData]/main.kt:4:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
||||
[kotlinc] true -> break
|
||||
[kotlinc] ^
|
||||
|
||||
@@ -4,7 +4,7 @@ Buildfile: [TestData]/build.xml
|
||||
build:
|
||||
[kotlinc] Compiling [[TestData]/hello.kt] => [[Temp]/hello.jar]
|
||||
[kotlinc] logging: using Kotlin home directory [KotlinProjectHome]/dist/kotlinc
|
||||
[kotlinc] logging: using old JVM backend
|
||||
[kotlinc] logging: using JVM IR backend
|
||||
[kotlinc] logging: configuring the compilation environment
|
||||
[kotlinc] logging: configure scripting: Added template org.jetbrains.kotlin.mainKts.MainKtsScript from [[CompilerLib]/kotlin-main-kts.jar, [CompilerLib]/kotlin-reflect.jar, [CompilerLib]/kotlin-script-runtime.jar, [CompilerLib]/kotlin-stdlib.jar]
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ private const val EMPTY_MAIN_FUN = "fun main() {}"
|
||||
|
||||
class CustomCliTest : TestCaseWithTmpdir() {
|
||||
fun testArgfileWithNonTrivialWhitespaces() {
|
||||
val text = "-include-runtime\r\n\t\t-language-version\n\t1.2\r\n-version"
|
||||
val text = "-include-runtime\r\n\t\t-language-version\n\t1.5\r\n-version"
|
||||
val argfile = File(tmpdir, "argfile").apply { writeText(text, Charsets.UTF_8) }
|
||||
CompilerTestUtil.executeCompilerAssertSuccessful(K2JVMCompiler(), listOf("@" + argfile.absolutePath))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user