| Summary: | Symlink tests fail on Win7 due to Bug 363463 | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | Resources | Assignee: | Szymon Brandys <Szymon.Brandys> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sptaszkiewicz |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M7 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 331716, 341334, 363463 | ||
| Bug Blocks: | |||
|
Description
Szymon Brandys
I have compared the execution of the test on Win7 and on Linux and it turned out that the test fails on Win7 because java.io.File#getCanonicalPath() does not resolve symbolic links on Win7. See http://download.oracle.com/javase/6/docs/api/java/io/File.html#getCanonicalPath(). This is why UnifiedTree#isRecursiveLink() keeps returning "false" on Win7 while at the same time on Linux it returns "true" (the loop is correctly discovered). I wonder if it is a problem in their javadoc or they do not support Win7 symlinks on purpose. Szymon, could you check if there is a bug for Java to support Win7 symlinks? And the test should be disabled on Win7, not only for Hudson on Win7. And I guess that the same problem is with #testBug358830? I think the same problem is with all tests that are using #isHudsonOnWin7. I raised Bug 363463 describing the issue with UnifiedTree#isRecursiveLink() and changed the summary of Bug 340834. Szymon P., I think that tests should use isWin7 checks instead of isHudsonOnWin7. Please make this change and close the bug. Bug 363463 would be used for investigating the problem with UnifiedTree#isRecursiveLink(). Fixed with f8b1945446be74ddfe0e56946568f23b3cb331d5. |