Skip to content

Commit 1517cec

Browse files
committed
Disable test on Windows
1 parent ec4863e commit 1517cec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

linker/src/test/java/io/helidon/build/linker/ClassDataSharingTestIT.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
import org.junit.jupiter.api.BeforeAll;
2929
import org.junit.jupiter.api.Order;
3030
import org.junit.jupiter.api.Tag;
31+
import org.junit.jupiter.api.condition.DisabledOnOs;
3132
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
33+
import org.junit.jupiter.api.condition.OS;
3234
import org.junit.jupiter.params.ParameterizedTest;
3335

3436
import static io.helidon.build.common.FileUtils.javaHome;
@@ -59,13 +61,16 @@ static void setup() {
5961
@Tag("mp")
6062
@ParameterizedTest
6163
@ConfigurationParameterSource("basedir")
64+
// ClassDataSharing uses relativize with jri location and mainJar.
65+
// relativize on Windows requires a shared root which is not true for this test.
66+
@DisabledOnOs(OS.WINDOWS)
6267
void testQuickstartMp(String basedir) throws Exception {
63-
Path mainJar = Path.of(basedir).resolve("target" + File.separator + "quickstart-mp.jar");
68+
Path mainJar = Path.of(basedir).resolve("target/quickstart-mp.jar");
6469
Path archiveFile = Files.createTempFile("start", "jsa");
6570
String exitOnStarted = "!";
6671
ClassDataSharing cds = ClassDataSharing.builder()
6772
.jri(JAVA_HOME)
68-
.applicationJar(mainJar.toRealPath())
73+
.applicationJar(mainJar)
6974
.createArchive(false)
7075
.logOutput(true)
7176
.exitOnStartedValue(exitOnStarted)

0 commit comments

Comments
 (0)