mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
Verifying that symlink target may be absolute.
This commit is contained in:
1 parent
ad4c39f5e2
commit
400fa878e6
2 files changed
+9
-1
No files matched your search
@@ -187,6 +187,14 @@ public class UtilTest {
|
||||
|
||||
// JENKINS-12331: either a bug in createSymlink or this isn't supposed to work:
|
||||
//assertTrue(Util.isSymlink(new File(d,"anotherDir/link")));
|
||||
|
||||
File external = File.createTempFile("something", "");
|
||||
try {
|
||||
Util.createSymlink(d, external.getAbsolutePath(), "outside", l);
|
||||
assertEquals(external.getAbsolutePath(), Util.resolveSymlink(new File(d, "outside")));
|
||||
} finally {
|
||||
assertTrue(external.delete());
|
||||
}
|
||||
} finally {
|
||||
Util.deleteRecursive(d);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user