Skip to content

Possible simplification on Eclipse Luna #2

@felu

Description

@felu

CDT Luna will contain a fix that makes all cdt-indexer tests reliable. For cdttesting, this will allow to simplify indexer setup.

the setupIndex method of CDTProjectTest can then be reduced to:

private void setUpIndex() throws CoreException {
    // reindexing will happen automatically after call of setIndexerId
    CCorePlugin.getIndexManager().setIndexerId(cproject, IPDOMManager.ID_FAST_INDEXER);
    for (ICProject curProj : referencedProjects) {
        CCorePlugin.getIndexManager().setIndexerId(curProj, IPDOMManager.ID_FAST_INDEXER);
    }
    assertTrue(CCorePlugin.getIndexManager().joinIndexer(IIndexManager.FOREVER, new NullProgressMonitor()));
}

The checkTestStatus() method can be dropped entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions