"Could not delete read-only file" error running server tests [message #919158] |
Fri, 21 September 2012 14:40  |
Eclipse User |
|
|
|
I'm trying to test a patch on the Orion 0.5 source, but having some issues with the server tests.
I've setup my source and tests according to the wiki [1]. Since I'm testing again Orion 0.5, I downloaded and used that as the "target platform". I also checked out the "R0_5" tag. I assume that's correct.
Before making any changes to the source, I ran the server tests. I get 25 errors, in the following sections:
* testETagHandling
* everything in WorkspaceServiceTest
* everything in AllSiteTests
The stack traces all look similar:
org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:125)
at org.eclipse.orion.server.tests.servlets.files.FileSystemTest.clearWorkspace(FileSystemTest.java:63)
at org.eclipse.orion.server.tests.servlets.workspace.WorkspaceServiceTest.setUp(WorkspaceServiceTest.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
...
Contains: Could not delete read-only file: /Users/Shared/workspaces/junit-workspace/testMetadataHandling.txt.
That file is indeed set as read-only. I even have to use "sudo" in order to delete it myself.
Why is Orion creating this file as read-only? I'm running on Eclipse Juno, Mac OS X 10.8...
[1] http://wiki.eclipse.org/Orion/Getting_the_source & http://wiki.eclipse.org/Orion/Running_the_tests
javier
|
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds