Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-02-06 23:49:34 -0500
committerSergey Prigogin2013-02-07 13:33:38 -0500
commit96eec067e6f50787e820de1becca1d93e8c5b220 (patch)
tree9c0d71516ef9dd4b9207b5d6daa92bf7e8541960
parentb91f3a809a003b7899022f3602c2fe2fb6b0d6b4 (diff)
downloadorg.eclipse.cdt-96eec067e6f50787e820de1becca1d93e8c5b220.tar.gz
org.eclipse.cdt-96eec067e6f50787e820de1becca1d93e8c5b220.tar.xz
org.eclipse.cdt-96eec067e6f50787e820de1becca1d93e8c5b220.zip
An attempt to reduce test flakiness.
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java
index dcd0d675d7..fdd1562b34 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java
@@ -85,9 +85,11 @@ public class IndexCompositeTests extends BaseTestCase {
desc.setReferencedProjects((IProject[]) dependencies.toArray(new IProject[dependencies.size()]));
result.getProject().setDescription(desc, new NullProgressMonitor());
- CCorePlugin.getIndexManager().setIndexerId(result, IPDOMManager.ID_FAST_INDEXER);
+ IIndexManager indexManager = CCorePlugin.getIndexManager();
+ indexManager.setIndexerId(result, IPDOMManager.ID_FAST_INDEXER);
if (lastFile != null) {
- IIndex index= CCorePlugin.getIndexManager().getIndex(result);
+ indexManager.reindex(result);
+ IIndex index= indexManager.getIndex(result);
TestSourceReader.waitUntilFileIsIndexed(index, lastFile, INDEXER_TIMEOUT_SEC * 1000);
}
BaseTestCase.waitForIndexer(result);

Back to the top