From 0883b4468b405d0bb42b61289580a8b236a1c3f5 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Wed, 2 Aug 2023 10:32:51 +0200 Subject: [PATCH] LV20 mute test related to main function detection related to #KT-44557 --- compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt index 81efb4fef02..1c7201ff2ec 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt @@ -106,7 +106,8 @@ class CustomCliTest : TestCaseWithTmpdir() { private fun compileAndCheckMainClass(sourceFiles: List, expectedMainClass: String?) { val jarFile = tmpdir.resolve("output.jar") - val args = listOf("-include-runtime", "-d", jarFile.absolutePath) + sourceFiles.map { it.absolutePath } + // TODO: remove explicit verion after implementing main fun detector (KT-44557) + val args = listOf("-language-version", "1.9", "-include-runtime", "-d", jarFile.absolutePath) + sourceFiles.map { it.absolutePath } CompilerTestUtil.executeCompilerAssertSuccessful(K2JVMCompiler(), args) JarFile(jarFile).use {