1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixes a testcase failure.

This commit is contained in:
Markus Schorn 2009-10-27 10:16:07 +00:00
parent edca08b14f
commit c6fa4817ff

View file

@ -1528,11 +1528,14 @@ public class IndexBugsTests extends BaseTestCase {
// void method();
// };
// #include "MyClass_inline.h"
// #include "MyClass.h"
public void testAddingMemberBeforeContainer_Bug203170() throws Exception {
String[] contents= getContentsForTest(2);
String[] contents= getContentsForTest(3);
final IIndexManager indexManager = CCorePlugin.getIndexManager();
TestSourceReader.createFile(fCProject.getProject(), "MyClass_inline.h", contents[0]);
TestSourceReader.createFile(fCProject.getProject(), "source.cpp", contents[1]);
TestSourceReader.createFile(fCProject.getProject(), "MyClass.h", contents[1]);
TestSourceReader.createFile(fCProject.getProject(), "MyClass.cpp", contents[2]);
indexManager.reindex(fCProject);
waitForIndexer();
fIndex.acquireReadLock();