From 736b9aeaaaeb94ee127999479dfd70b608a4cbbe Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sat, 23 Jul 2022 20:06:47 +0200 Subject: [PATCH] [JENKINS-69105] `UtilTest#createDirectories` fails when temporary directory is a symbolic link (#6906) --- core/src/test/java/hudson/UtilTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);