1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

bug 292003: JUnit failure: managedbuilder testLinkedFolder intermittently fails

added join FAMILY_AUTO_REFRESH for another flavor of creating a project
This commit is contained in:
Andrew Gvozdev 2009-11-20 03:40:36 +00:00
parent bc7549cb14
commit 7e2ae40497

View file

@ -348,6 +348,17 @@ public class ManagedBuildTestHelper {
} catch (CoreException e2) {
Assert.fail(e2.getLocalizedMessage());
}
// CDT opens the Project with BACKGROUND_REFRESH enabled which causes the
// refresh manager to refresh the project 200ms later. This Job interferes
// with the resource change handler firing see: bug 271264
try {
// CDT opens the Project with BACKGROUND_REFRESH enabled which causes the
// refresh manager to refresh the project 200ms later. This Job interferes
// with the resource change handler firing see: bug 271264
Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_REFRESH, null);
} catch (Exception e) {
// Ignore
}
// Initialize the path entry container
IStatus initResult = ManagedBuildManager.initBuildInfoContainer(project);