Disable crashing tests on openj9 18
@@ -76,4 +76,11 @@ tasks.withType<Test>().configureEach {
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
+
+ // disable tests on openj9 18 because they often crash JIT compiler
+ val testJavaVersion = gradle.startParameter.projectProperties["testJavaVersion"]?.let(JavaVersion::toVersion)
+ val testOnOpenJ9 = gradle.startParameter.projectProperties["testJavaVM"]?.run { this == "openj9" } ?: false
+ if (testOnOpenJ9 && testJavaVersion?.majorVersion == "18") {
+ enabled = false
+ }
}
