diff --git a/core/src/test/java/hudson/UtilTest.java b/core/src/test/java/hudson/UtilTest.java index 088591e5dd..52b8f1171a 100644 --- a/core/src/test/java/hudson/UtilTest.java +++ b/core/src/test/java/hudson/UtilTest.java @@ -643,7 +643,7 @@ public class UtilTest { // /a1 // /a2 => symlink to a1 // /b => symlink to a - Path root = tmp.getRoot().toPath(); + Path root = tmp.getRoot().toPath().toRealPath(); Path a = root.resolve("a"); Path a1 = a.resolve("a1"); Files.createDirectories(a1);