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.CProjectHelper;
|
||||||
import org.eclipse.cdt.core.testplugin.CTestPlugin;
|
import org.eclipse.cdt.core.testplugin.CTestPlugin;
|
||||||
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
||||||
|
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTNameBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for C model builder bugs.
|
* Tests for C model builder bugs.
|
||||||
|
@ -38,6 +39,7 @@ public class CModelBuilderBugsTest extends BaseTestCase {
|
||||||
super(name);
|
super(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
fCProject= CProjectHelper.createCProject(getName(), null, IPDOMManager.ID_FAST_INDEXER);
|
fCProject= CProjectHelper.createCProject(getName(), null, IPDOMManager.ID_FAST_INDEXER);
|
||||||
|
@ -47,12 +49,14 @@ public class CModelBuilderBugsTest extends BaseTestCase {
|
||||||
assertNotNull(fTU);
|
assertNotNull(fTU);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
CProjectHelper.delete(fCProject);
|
CProjectHelper.delete(fCProject);
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testModelBuilderBug222398() throws Exception {
|
public void testModelBuilderBug222398() throws Exception {
|
||||||
|
CPPASTNameBase.sAllowNameComputation= true;
|
||||||
IStructure clazz= (IStructure) fTU.getElement("Test");
|
IStructure clazz= (IStructure) fTU.getElement("Test");
|
||||||
assertNotNull(clazz);
|
assertNotNull(clazz);
|
||||||
ICElement[] methods= clazz.getChildren();
|
ICElement[] methods= clazz.getChildren();
|
||||||
|
|
Loading…
Add table
Reference in a new issue