This is an automated email from the ASF dual-hosted git repository. bodewig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ant.git
commit 2dad9b0d4f21ec883572ee1d2b5b7522baf06183 Author: Stefan Bodewig <[email protected]> AuthorDate: Sun Mar 1 17:07:30 2026 +0100 skip test that relies on getCanonicalPath to work properly --- .../org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java index ed0bb6fa8..7bb1ddd06 100644 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java @@ -30,10 +30,12 @@ package org.apache.tools.ant.taskdefs.optional.unix; import org.apache.tools.ant.BuildFileRule; -import org.apache.tools.ant.taskdefs.condition.CanCreateSymbolicLink; import org.apache.tools.ant.Project; +import org.apache.tools.ant.util.JavaEnvUtils; import org.apache.tools.ant.util.SymbolicLinkUtils; +import org.apache.tools.ant.taskdefs.condition.CanCreateSymbolicLink; +import org.apache.tools.ant.taskdefs.condition.Os; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -176,6 +178,9 @@ public class SymlinkTest { @Test public void testSymbolicLinkUtilsMethods() throws Exception { + assumeTrue("can't trust getCanonicalPath, but SymbolicLinkUtils does", + !Os.isFamily("windows") + || JavaEnvUtils.isAtLeastJavaVersion("24")); buildRule.executeTarget("test-fileutils"); SymbolicLinkUtils su = SymbolicLinkUtils.getSymbolicLinkUtils();
