From 0732e2b878a68cbcf926d72dc42701af59332b5e Mon Sep 17 00:00:00 2001 From: Michal Karm Babacek Date: Mon, 16 Sep 2024 14:46:08 +0200 Subject: [PATCH] Versions exclusions --- .../tests/integration/AppReproducersTest.java | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java b/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java index 9fa9118..a461b19 100644 --- a/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java +++ b/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java @@ -819,14 +819,27 @@ public void monitorFieldOffset(TestInfo testInfo, Apps app) throws IOException, @Test @Tag("builder-image") - @IfMandrelVersion(min = "23.1.5", inContainer = true) - public void forSerializationContainerTest(TestInfo testInfo) throws IOException, InterruptedException { + @IfMandrelVersion(min = "23.1.5", maxJDK = "21.999", inContainer = true) + public void forSerializationContainer21Test(TestInfo testInfo) throws IOException, InterruptedException { forSerialization(testInfo, Apps.FOR_SERIALIZATION_BUILDER_IMAGE); } @Test - @IfMandrelVersion(min = "23.1.5") - public void forSerializationTest(TestInfo testInfo) throws IOException, InterruptedException { + @IfMandrelVersion(min = "23.1.5", maxJDK = "21.999") + public void forSerialization21Test(TestInfo testInfo) throws IOException, InterruptedException { + forSerialization(testInfo, Apps.FOR_SERIALIZATION); + } + + @Test + @Tag("builder-image") + @IfMandrelVersion(min = "23.1.5", minJDK = "23", inContainer = true) + public void forSerializationContainer23Test(TestInfo testInfo) throws IOException, InterruptedException { + forSerialization(testInfo, Apps.FOR_SERIALIZATION_BUILDER_IMAGE); + } + + @Test + @IfMandrelVersion(min = "23.1.5", minJDK = "23") + public void forSerialization23Test(TestInfo testInfo) throws IOException, InterruptedException { forSerialization(testInfo, Apps.FOR_SERIALIZATION); }