From 0fe5609a10a39e558d7a9dcd4dfe250f23c9506e Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Tue, 7 Nov 2006 10:00:07 +0000 Subject: [PATCH] Fixes warning, marks test as failing. --- .../org/eclipse/cdt/internal/pdom/tests/ClassTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/ClassTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/ClassTests.java index d6f27ac0fb0..cb65c108701 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/ClassTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/ClassTests.java @@ -19,11 +19,9 @@ import junit.framework.Test; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.dom.IName; import org.eclipse.cdt.core.dom.ast.IASTFileLocation; -import org.eclipse.cdt.core.dom.ast.IASTName; import org.eclipse.cdt.core.dom.ast.IBinding; import org.eclipse.cdt.core.dom.ast.IField; import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType; -import org.eclipse.cdt.core.dom.ast.cpp.ICPPConstructor; import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod; import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace; import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceScope; @@ -128,7 +126,8 @@ public class ClassTests extends PDOMTestBase { assertEquals(bindings[0], friends[0]); //functionB is a friend of ClassC } - public void testConstructor() throws Exception { + public void _testConstructor() throws Exception { + // the source does not define Class1, so it is no surprise that the test is failing. //TODO PDOM doesn't have information on constructor IBinding[] bindings = pdom.findBindings(Pattern.compile("Class1"), false, new IndexFilter(), new NullProgressMonitor()); assertEquals(2, bindings.length);