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
This commit is contained in:
committed by
Space Team
parent
ade88e2b0f
commit
fdab636a1b
+4
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user