Skip to content

Commit 4e38707

Browse files
committed
Do not throw RuntimeException from IFile.getContents(false) #2290
1 parent 9accd35 commit 4e38707

File tree

1 file changed

+2
-1
lines changed
  • resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/regression

1 file changed

+2
-1
lines changed

resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/regression/IFileTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
@ExtendWith(WorkspaceResetExtension.class)
4848
public class IFileTest {
49+
4950
/**
5051
* Bug states that the error code in the CoreException which is thrown when
5152
* you try to create a file in a read-only folder on Linux should be
@@ -144,7 +145,7 @@ public void testIssue2290() throws CoreException, InterruptedException {
144145
createInWorkspace(subject);
145146
while (!monitor.isCanceled()) {
146147
try {
147-
subject.delete(true, null);
148+
subject.delete(true, monitor);
148149
break;
149150
} catch (CoreException e) {
150151
// On Windows, files opened for reading can't be deleted, try again

0 commit comments

Comments
 (0)