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:
parent
c1ca5aeef0
commit
535ad23797
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue