mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
[JENKINS-13202] 646154f refinement: resolveSymlink is documented to return null, not throw an exception, when called on a regular file.
This commit is contained in:
1 parent
a8d9397716
commit
0552f5ad75
3 files changed
+11
No files matched your search
@@ -171,6 +171,7 @@ public class UtilTest {
|
||||
File d = Util.createTempDir();
|
||||
try {
|
||||
new FilePath(new File(d, "a")).touch(0);
|
||||
assertNull(Util.resolveSymlink(new File(d, "a")));
|
||||
Util.createSymlink(d,"a","x", l);
|
||||
assertEquals("a",Util.resolveSymlink(new File(d,"x")));
|
||||
|
||||
|
||||
Reference in new issue
Block a user