8347297: Skip the RuntimeImageSymbolicLinksTest test on Windows when it is executed outside of the jtreg

Reviewed-by: almatvee
This commit is contained in:
Alexey Semenyuk 2025-01-09 03:35:31 +00:00
parent b3e8736091
commit 0a35ebfd57

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import static jdk.internal.util.OperatingSystem.WINDOWS;
import jdk.jpackage.test.ApplicationLayout;
import jdk.jpackage.test.TKit;
import jdk.jpackage.test.Annotations.Test;
@ -49,7 +50,7 @@ import jdk.jpackage.test.Executor;
public class RuntimeImageSymbolicLinksTest {
@Test
@Test(ifNotOS = WINDOWS)
public static void test() throws Exception {
final Path jmods = Path.of(System.getProperty("java.home"), "jmods");
final Path workDir = TKit.createTempDirectory("runtime").resolve("data");