Community
Participate
Working Groups
testBug232426(org.eclipse.core.tests.internal.localstore.SymlinkResourceTest) still fails on Win7. No matter it is run as an administrator or a regular user.
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.