mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixes a test-failure.
This commit is contained in:
parent
f4ce07488d
commit
ad36b7caa4
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
|
|||
import org.eclipse.cdt.core.testplugin.CProjectHelper;
|
||||
import org.eclipse.cdt.core.testplugin.CTestPlugin;
|
||||
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTNameBase;
|
||||
|
||||
/**
|
||||
* Tests for C model builder bugs.
|
||||
|
@ -38,6 +39,7 @@ public class CModelBuilderBugsTest extends BaseTestCase {
|
|||
super(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
fCProject= CProjectHelper.createCProject(getName(), null, IPDOMManager.ID_FAST_INDEXER);
|
||||
|
@ -47,12 +49,14 @@ public class CModelBuilderBugsTest extends BaseTestCase {
|
|||
assertNotNull(fTU);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
CProjectHelper.delete(fCProject);
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void testModelBuilderBug222398() throws Exception {
|
||||
CPPASTNameBase.sAllowNameComputation= true;
|
||||
IStructure clazz= (IStructure) fTU.getElement("Test");
|
||||
assertNotNull(clazz);
|
||||
ICElement[] methods= clazz.getChildren();
|
||||
|
|
Loading…
Add table
Reference in a new issue