1
0
Fork 0
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:
Markus Schorn 2007-11-28 11:34:52 +00:00
parent 50fd8d7c75
commit 8c2d3a947d
3 changed files with 5 additions and 5 deletions

View file

@ -177,8 +177,8 @@ public class IndexBugsTests extends BaseTestCase {
// class A {};
// class B {};
// B var;
public void _test173997_2() throws Exception {
StringBuffer[] content= getContentsForTest(3);
public void test173997_2() throws Exception {
StringBuffer[] content= getContentsForTest(2);
IFile file= createFile(getProject(), "header.h", content[0].toString());
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);

View file

@ -43,7 +43,7 @@ public class ClassTests extends PDOMTestBase {
protected PDOM pdom;
public static Test suite() {
return suite(ClassTests.class);
return suite(ClassTests.class, "_");
}
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
}
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.
//TODO PDOM doesn't have information on constructor
IBinding[] bindings = pdom.findBindings(Pattern.compile("Class1"), false, IndexFilter.ALL, NPM);

View file

@ -164,7 +164,7 @@ public class BaseTestCase extends TestCase {
}
public void run( TestResult result ) {
if (!fExpectFailure) {
if (!fExpectFailure || "true".equals(System.getProperty("SHOW_EXPECTED_FAILURES"))) {
super.run(result);
return;
}