mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix occasional test failure.
This commit is contained in:
parent
0583881ce1
commit
475aebee89
1 changed files with 2 additions and 1 deletions
|
@ -163,9 +163,10 @@ public class IndexLocationTest extends BaseTestCase {
|
|||
content.createLink(new Path(location.getParentFile().getAbsolutePath()), IResource.NONE, npm());
|
||||
|
||||
CCorePlugin.getIndexManager().reindex(cproject);
|
||||
assertTrue(CCorePlugin.getIndexManager().joinIndexer(10000, new NullProgressMonitor()));
|
||||
|
||||
IIndex index = CCorePlugin.getIndexManager().getIndex(cproject);
|
||||
TestSourceReader.waitUntilFileIsIndexed(index, content.getFile("external2.h"), 4000);
|
||||
assertTrue(CCorePlugin.getIndexManager().joinIndexer(10000, new NullProgressMonitor()));
|
||||
index.acquireReadLock();
|
||||
try {
|
||||
IBinding[] bs= index.findBindings("External".toCharArray(), IndexFilter.ALL, npm());
|
||||
|
|
Loading…
Add table
Reference in a new issue