mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
bug 311468: JUnit failure: ErrorParserFileMatchingTest - SymbolicLink, intermittent
more troubleshooting added
This commit is contained in:
parent
23734c5141
commit
89863c1400
1 changed files with 5 additions and 1 deletions
|
@ -543,13 +543,17 @@ public class ResourceHelper {
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Assert.assertTrue("Symbolic link was not created: [" + command +"]",
|
||||||
|
new File(linkedPath.toOSString()).exists());
|
||||||
|
|
||||||
IResource resource = project.getFile(linkName);
|
IResource resource = project.getFile(linkName);
|
||||||
resource.refreshLocal(IResource.DEPTH_ZERO, null);
|
resource.refreshLocal(IResource.DEPTH_ZERO, null);
|
||||||
|
|
||||||
if (!resource.exists()) {
|
if (!resource.exists()) {
|
||||||
resource = project.getFolder(linkName);
|
resource = project.getFolder(linkName);
|
||||||
|
resource.refreshLocal(IResource.DEPTH_ZERO, null);
|
||||||
}
|
}
|
||||||
Assert.assertTrue(resource.exists());
|
Assert.assertTrue("Failed to create resource form symbolic link", resource.exists());
|
||||||
|
|
||||||
externalFilesCreated.add(linkedPath.toOSString());
|
externalFilesCreated.add(linkedPath.toOSString());
|
||||||
ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, NULL_MONITOR);
|
ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, NULL_MONITOR);
|
||||||
|
|
Loading…
Add table
Reference in a new issue