Disable crashing tests on openj9 18
MODIFY
instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts
instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts
@@ -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
+ }
}

Disable crashing tests on openj9 18 (#6481)