mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixes a testcase.
This commit is contained in:
parent
50fd8d7c75
commit
8c2d3a947d
3 changed files with 5 additions and 5 deletions
|
@ -177,8 +177,8 @@ public class IndexBugsTests extends BaseTestCase {
|
||||||
// class A {};
|
// class A {};
|
||||||
// class B {};
|
// class B {};
|
||||||
// B var;
|
// B var;
|
||||||
public void _test173997_2() throws Exception {
|
public void test173997_2() throws Exception {
|
||||||
StringBuffer[] content= getContentsForTest(3);
|
StringBuffer[] content= getContentsForTest(2);
|
||||||
|
|
||||||
IFile file= createFile(getProject(), "header.h", content[0].toString());
|
IFile file= createFile(getProject(), "header.h", content[0].toString());
|
||||||
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);
|
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class ClassTests extends PDOMTestBase {
|
||||||
protected PDOM pdom;
|
protected PDOM pdom;
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return suite(ClassTests.class);
|
return suite(ClassTests.class, "_");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
|
@ -141,7 +141,7 @@ public class ClassTests extends PDOMTestBase {
|
||||||
assertEquals(bindings[0], friends[0]); //functionB is a friend of ClassC
|
assertEquals(bindings[0], friends[0]); //functionB is a friend of ClassC
|
||||||
}
|
}
|
||||||
|
|
||||||
public void _testConstructor() throws Exception {
|
public void noTest_testConstructor() throws Exception {
|
||||||
// the source does not define Class1, so it is no surprise that the test is failing.
|
// the source does not define Class1, so it is no surprise that the test is failing.
|
||||||
//TODO PDOM doesn't have information on constructor
|
//TODO PDOM doesn't have information on constructor
|
||||||
IBinding[] bindings = pdom.findBindings(Pattern.compile("Class1"), false, IndexFilter.ALL, NPM);
|
IBinding[] bindings = pdom.findBindings(Pattern.compile("Class1"), false, IndexFilter.ALL, NPM);
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class BaseTestCase extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run( TestResult result ) {
|
public void run( TestResult result ) {
|
||||||
if (!fExpectFailure) {
|
if (!fExpectFailure || "true".equals(System.getProperty("SHOW_EXPECTED_FAILURES"))) {
|
||||||
super.run(result);
|
super.run(result);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue