mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
bug 415970: Add waitForIndexer() before refreshLocal()
This commit is contained in:
parent
18e785490f
commit
cd69f40a58
1 changed files with 4 additions and 0 deletions
|
@ -1143,6 +1143,8 @@ public class LanguageSettingsPersistenceProjectTests extends BaseTestCase {
|
|||
assertTrue("File "+xmlFile+ " does not exist", xmlFile.exists());
|
||||
assertFalse("File "+xmlFileOut+ " still exist", xmlFileOut.exists());
|
||||
|
||||
// Wait out in case indexer thread hijacks refreshLocal(), see bug 415970
|
||||
waitForIndexer(CCorePlugin.getDefault().getCoreModel().create(project));
|
||||
// Refresh storage in workspace
|
||||
xmlStorageFilePrj.refreshLocal(IResource.DEPTH_ZERO, null);
|
||||
assertTrue("File "+xmlStorageFilePrj+ " does not exist", xmlStorageFilePrj.exists());
|
||||
|
@ -1372,6 +1374,8 @@ public class LanguageSettingsPersistenceProjectTests extends BaseTestCase {
|
|||
assertTrue("File "+xmlFile+ " does not exist", xmlFile.exists());
|
||||
assertFalse("File "+xmlFileOut+ " still exist", xmlFileOut.exists());
|
||||
|
||||
// Wait out in case indexer thread hijacks refreshLocal(), see bug 415970
|
||||
waitForIndexer(CCorePlugin.getDefault().getCoreModel().create(project));
|
||||
// Refresh storage in workspace
|
||||
xmlStorageFilePrj.refreshLocal(IResource.DEPTH_ZERO, null);
|
||||
assertTrue("File "+xmlStorageFilePrj+ " does not exist", xmlStorageFilePrj.exists());
|
||||
|
|
Loading…
Add table
Reference in a new issue