Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #328889 +++ Similar to bug 328889, ResourceAttributeTest also tries to run "ln" on Windows 7. I assume that this had not been detected before because the ResourceAttributeTest isn't part of the AutomatedTests suite.
Created attachment 187978 [details] Patch fixing the issue
Created attachment 187987 [details] Additional patch to CoreTest harness for Win7 64bit Attached additional patch is needed to run on Win7 64bit, because "mklink" is not an exe but a cmd builtin. I also improved the check whether running on vista or higher, such that we won't have to edit the code again when the next version of Windows comes out.
I committed the 1st patch, but apparently I don't have commit rights on o.e.core.tests.harness Szymon could you commit the 2nd patch please? I tested this on my Win7 64-bit system. Note that in order for "mklink" to succeed, I had to run my Eclipse host with elevated privileges. To do so, 1. create a Windows Shortcut pointing to your eclipse.exe 2. Right-click > Properties on the Shortcut 3. Click the "Advanced" button 4. Enable the "Run as Administrator" checkbox Interestingly, just being logged in as an Administrator was not sufficient. I had to explicitly run Eclipse as an administrator (ie with elevated privileges) too. This seems to be a known and desired behavior by Microsoft. In order to run "mklink" on commandline, the cmd.exe also has to run with elevated privileges. I did not test this on Vista, nor on Wind7-32bit but looking at the code I do expect this to still work.
Created attachment 187988 [details] Improved patch to CoreTest harness for Win7 64bit, prints failure cause
This failure also mentioned in bug 331716, but feel free to release this one separately.
Created attachment 187993 [details] patch v3 to CoreTest harness for Win7, makes version check protected Attached patch v3 enables checking the windows version (needed for fixing bug 331716)
*** Bug 336659 has been marked as a duplicate of this bug. ***
"patch v3..." committed.