From fdab636a1baae50b2cd302909b0f815d7e590e25 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 21 Aug 2023 23:18:04 +0200 Subject: [PATCH] Tests: add missing language version in a Java modules test The main function in this test class to compile a bunch of sources is `module`, which was changed to test different language versions in 4e706ba93e. But this test uses `compileLibrary` directly, so we need to pass LV manually. #KT-60797 --- .../jvm/modules/AbstractJavaModulesIntegrationTest.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/modules/AbstractJavaModulesIntegrationTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/modules/AbstractJavaModulesIntegrationTest.kt index 7d1679b2311..0c33ea1f49f 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/modules/AbstractJavaModulesIntegrationTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/modules/AbstractJavaModulesIntegrationTest.kt @@ -218,13 +218,15 @@ abstract class AbstractJavaModulesIntegrationTest( module("moduleD", listOf(c, b, a)) } - fun testSpecifyPathToModuleInfoInArguments() { + // TODO (KT-60797): missing JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE. + fun testSpecifyPathToModuleInfoInArguments() = muteForK2 { val a = module("moduleA") val kotlinOptions = mutableListOf( "$testDataDirectory/someOtherDirectoryWithTheActualModuleInfo/module-info.java", "-jdk-home", jdkHome.path, - "-Xmodule-path=${a.path}" + "-Xmodule-path=${a.path}", + "-language-version", languageVersion.versionString, ) compileLibrary( "moduleB",