diff options
author | Marc-Andre Laperle | 2014-03-15 02:44:12 +0000 |
---|---|---|
committer | Marc-Andre Laperle | 2014-03-15 16:05:03 +0000 |
commit | 535ad23797f600e71dca1bb876836cb82e54c321 (patch) | |
tree | ff9f86158ebb0e982f348cbe3b8e23eadfd56a31 /codan/org.eclipse.cdt.codan.core.test | |
parent | c1ca5aeef0c2a1928259d9e625d2e366d1df7de8 (diff) | |
download | org.eclipse.cdt-535ad23797f600e71dca1bb876836cb82e54c321.tar.gz org.eclipse.cdt-535ad23797f600e71dca1bb876836cb82e54c321.tar.xz org.eclipse.cdt-535ad23797f600e71dca1bb876836cb82e54c321.zip |
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>
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core.test')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/test/CodanTestCase.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/test/CodanTestCase.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/test/CodanTestCase.java index fb73bbe18eb..41af0bf470d 100644 --- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/test/CodanTestCase.java +++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/test/CodanTestCase.java @@ -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(); |