[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:
Jesse Glick committed 2012-11-16 13:41:22 -05:00
1 parent a8d9397716
commit 0552f5ad75
3 files changed
+11

No files matched your search

+1
View File
@@ -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")));