1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 10:15:39 +02:00

Fix intermittent test failures in codan

Sometimes, index-based checkers (AbstractIndexAstChecker) were skipped
because the indexer was not fully initialized so expected errors were
not getting reported.

Change-Id: Ibb764224f11ae4a867a4aa6b9de2b8ec55e90c55
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23428
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
Marc-Andre Laperle 2014-03-14 22:44:12 -04:00
parent c1ca5aeef0
commit 535ad23797

View file

@ -225,9 +225,11 @@ public class CodanTestCase extends BaseTestCase {
currentFile = testFile;
try {
cproject.getProject().refreshLocal(1, null);
waitForIndexer(cproject);
} catch (CoreException e) {
// hmm
fail(e.getMessage());
} catch (InterruptedException e) {
}
currentCElem = cproject.findElement(new Path(currentFile.toString()));
currentIFile = (IFile) currentCElem.getResource();