Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for FAMILY_SNAPSHOT jobs after creating projects/teardown
org.eclipse.core.internal.resources.DelayedSnapshotJob.run(IProgressMonitor) is triggered both periodically and on few special cases. Special cases are project deletion and creation, options change... This job may create change events coming to JDT from non-UI thread, see org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(IResourceChangeEvent). To avoid sporadic test fails we should also wait for that job. Note: we can't unconditionally call waitForSnapShot(), it should be always done outside of the code that holds workspace rule, otherwise we will run in deadlocks with other jobs... See eclipse-jdt#2716
- Loading branch information