K2: do not run compilation if Java module graph setup failed

#KT-61156 Fixed
This commit is contained in:
Alexander Udalov
2023-08-11 01:20:32 +02:00
committed by Space Team
parent 4e706ba93e
commit bddc18e463
2 changed files with 2 additions and 2 deletions
@@ -165,8 +165,7 @@ abstract class AbstractJavaModulesIntegrationTest(
module("moduleB", listOf(module("moduleA")), addModules = emptyList())
}
// TODO (KT-61156): do not try to run compilation if there were errors during calculation of Java module graph.
fun testReleaseFlagWrongValue() = muteForK2 {
fun testReleaseFlagWrongValue() {
module("module5", additionalKotlinArguments = listOf("-Xjdk-release=5"), checkKotlinOutput = { output ->
assertTrue(output, "error: unknown JDK release version: 5" in output)
assertTrue(output, "error: unknown JVM target version: 5" in output)