1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

bug 311468: JUnit failure: ErrorParserFileMatchingTest - SymbolicLink, intermittent

more troubleshooting added
This commit is contained in:
Andrew Gvozdev 2010-05-11 14:43:32 +00:00
parent 23734c5141
commit 89863c1400

View file

@ -543,13 +543,17 @@ public class ResourceHelper {
} catch (InterruptedException e) {
}
Assert.assertTrue("Symbolic link was not created: [" + command +"]",
new File(linkedPath.toOSString()).exists());
IResource resource = project.getFile(linkName);
resource.refreshLocal(IResource.DEPTH_ZERO, null);
if (!resource.exists()) {
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());
ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, NULL_MONITOR);