From 02b1eae54e9a0bc7eec863bb9c7fed9dd0ad086d Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Mon, 11 Dec 2023 19:53:48 -0600 Subject: [PATCH] Skip CDS test if the JDK cannot create AppCDS This assumes that we are only testing the CDS works if it can be created. If it cannot be created because the JVM does not support it, we should not fail the entire build. --- .../maven/src/test/java/io/quarkus/maven/it/JarRunnerIT.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration-tests/maven/src/test/java/io/quarkus/maven/it/JarRunnerIT.java b/integration-tests/maven/src/test/java/io/quarkus/maven/it/JarRunnerIT.java index 2c7a2a8405352..a60cd61c150bd 100644 --- a/integration-tests/maven/src/test/java/io/quarkus/maven/it/JarRunnerIT.java +++ b/integration-tests/maven/src/test/java/io/quarkus/maven/it/JarRunnerIT.java @@ -3,6 +3,7 @@ import static io.quarkus.maven.it.ApplicationNameAndVersionTestUtil.assertApplicationPropertiesSetCorrectly; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; +import static org.assertj.core.api.Assumptions.assumeThat; import static org.awaitility.Awaitility.await; import java.io.BufferedReader; @@ -617,6 +618,8 @@ public void testThatAppCDSAreUsable() throws Exception { await().atMost(TestUtils.getDefaultTimeout(), TimeUnit.MINUTES) .until(() -> result.getProcess() != null && !result.getProcess().isAlive()); + // just skip if the JDK can't create appcds + assumeThat(running.log()).doesNotContainIgnoringCase("Unable to create AppCDS"); assertThat(running.log()).containsIgnoringCase("BUILD SUCCESS"); running.stop();