Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-03-15 02:44:12 +0000
committerMarc-Andre Laperle2014-03-15 16:05:03 +0000
commit535ad23797f600e71dca1bb876836cb82e54c321 (patch)
treeff9f86158ebb0e982f348cbe3b8e23eadfd56a31 /codan/org.eclipse.cdt.codan.core.test
parentc1ca5aeef0c2a1928259d9e625d2e366d1df7de8 (diff)
downloadorg.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.java2
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();

Back to the top