Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 23:43:38 +0000
committerJonah Graham2018-11-22 20:34:33 +0000
commit37f0f660c868b7570516843db01d51c08cbc75e2 (patch)
tree9ca791af1aed5cf6eeb73a1ed6f3ad31e87b0772
parent086e6e30b7a4ba995a33da9db14066c3fec0fb9e (diff)
downloadorg.eclipse.cdt-37f0f660c868b7570516843db01d51c08cbc75e2.tar.gz
org.eclipse.cdt-37f0f660c868b7570516843db01d51c08cbc75e2.tar.xz
org.eclipse.cdt-37f0f660c868b7570516843db01d51c08cbc75e2.zip
Bug 540373: Fix tests that rely on format of Java code
TestSourceReader.getContentsForTest() does not examine lines containing @ to see if they have the test method. This means that changing the formatting of this test could break it as the reader would see the // comments as test data. Things which are comments and not test data should have /**/ comments as this commit now does. Change-Id: Ic30a63df3910c6a5643b4ac734c05526e3420095
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionBugsSingleProjectFirstAST.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionBugsSingleProjectFirstAST.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionBugsSingleProjectFirstAST.java
index 63bba8e5379..9e1873f16fa 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionBugsSingleProjectFirstAST.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionBugsSingleProjectFirstAST.java
@@ -24,11 +24,11 @@ public class IndexCPPBindingResolutionBugsSingleProjectFirstAST extends IndexCPP
return suite(IndexCPPBindingResolutionBugsSingleProjectFirstAST.class);
}
- // Invalid tests for this strategy, they assume that the second file is already indexed.
+ /* Invalid tests for this strategy, they assume that the second file is already indexed. */
@Override public void test_208558() {}
@Override public void test_176708_CCE() {}
@Override public void testIsSameAnonymousType_193962() {}
@Override public void testIsSameNestedAnonymousType_193962() {}
- // For some unknown reason this test is flaky for this strategy.
+ /* For some unknown reason this test is flaky for this strategy. */
@Override public void testTemplateArgumentResolution_450888() {}
} \ No newline at end of file

Back to the top