1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Added bugzillas to failing tests.

This commit is contained in:
Markus Schorn 2006-09-08 10:58:42 +00:00
parent d055a072ae
commit 5315ee73bb
2 changed files with 23 additions and 21 deletions

View file

@ -43,18 +43,18 @@ public class BasicCallHierarchyTest extends CallHierarchyBaseTest {
private static Test getFailingTests() { private static Test getFailingTests() {
TestSuite suite= new TestSuite("Failing Tests"); TestSuite suite= new TestSuite("Failing Tests");
suite.addTest(getFailingTest("_testAnonymousEnumeratorC")); suite.addTest(getFailingTest("_testAnonymousEnumeratorC", 156671));
suite.addTest(getFailingTest("_testAnonymousEnumeratorCpp")); suite.addTest(getFailingTest("_testAnonymousEnumeratorCpp", 156671));
suite.addTest(getFailingTest("_testAnonymousStructMembersC")); suite.addTest(getFailingTest("_testAnonymousStructMembersC", 156671));
suite.addTest(getFailingTest("_testAnonymousStructMembersCpp")); suite.addTest(getFailingTest("_testAnonymousStructMembersCpp", 156671));
suite.addTest(getFailingTest("_testAnonymousUnionMembersC")); suite.addTest(getFailingTest("_testAnonymousUnionMembersC", 156671));
suite.addTest(getFailingTest("_testAnonymousUnionMembersCpp")); suite.addTest(getFailingTest("_testAnonymousUnionMembersCpp", 156671));
return suite; return suite;
} }
private static Test getFailingTest(String name) { private static Test getFailingTest(String name, int bugzilla) {
BaseTestCase failingTest= new BasicCallHierarchyTest(name); BaseTestCase failingTest= new BasicCallHierarchyTest(name);
failingTest.setExpectFailure(0); failingTest.setExpectFailure(bugzilla);
return failingTest; return failingTest;
} }

View file

@ -27,6 +27,8 @@ import org.eclipse.cdt.internal.ui.editor.CEditor;
public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest { public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
private static final int MAX_TIME_INDEXER = 2000;
public BasicCppCallHierarchyTest(String name) { public BasicCppCallHierarchyTest(String name) {
super(name); super(name);
} }
@ -40,15 +42,15 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
private static Test getFailingTests() { private static Test getFailingTests() {
TestSuite suite= new TestSuite("Failing Tests"); TestSuite suite= new TestSuite("Failing Tests");
suite.addTest(getFailingTest("_testAutomaticConstructor")); suite.addTest(getFailingTest("_testAutomaticConstructor", 156668));
suite.addTest(getFailingTest("_testDestructor")); suite.addTest(getFailingTest("_testDestructor", 156669));
suite.addTest(getFailingTest("_testNamespacePart2")); suite.addTest(getFailingTest("_testNamespacePart2", 156519));
return suite; return suite;
} }
private static Test getFailingTest(String name) { private static Test getFailingTest(String name, int bugzilla) {
BaseTestCase failingTest= new BasicCppCallHierarchyTest(name); BaseTestCase failingTest= new BasicCppCallHierarchyTest(name);
failingTest.setExpectFailure(0); failingTest.setExpectFailure(bugzilla);
return failingTest; return failingTest;
} }
@ -75,7 +77,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void testMethods() throws Exception { public void testMethods() throws Exception {
String content = readTaggedComment("testMethods"); String content = readTaggedComment("testMethods");
IFile file= createFile(getProject(), "testMethods.cpp", content); IFile file= createFile(getProject(), "testMethods.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -159,7 +161,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void testStaticMethods() throws Exception { public void testStaticMethods() throws Exception {
String content = readTaggedComment("testStaticMethods"); String content = readTaggedComment("testStaticMethods");
IFile file= createFile(getProject(), "testStaticMethods.cpp", content); IFile file= createFile(getProject(), "testStaticMethods.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -248,7 +250,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void testFields() throws Exception { public void testFields() throws Exception {
String content = readTaggedComment("testFields"); String content = readTaggedComment("testFields");
IFile file= createFile(getProject(), "testFields.cpp", content); IFile file= createFile(getProject(), "testFields.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -323,7 +325,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void _testAutomaticConstructor() throws Exception { public void _testAutomaticConstructor() throws Exception {
String content = readTaggedComment("testAutomaticConstructor"); String content = readTaggedComment("testAutomaticConstructor");
IFile file= createFile(getProject(), "testConstructor.cpp", content); IFile file= createFile(getProject(), "testConstructor.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -353,7 +355,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void testConstructor() throws Exception { public void testConstructor() throws Exception {
String content = readTaggedComment("testConstructor"); String content = readTaggedComment("testConstructor");
IFile file= createFile(getProject(), "testConstructor.cpp", content); IFile file= createFile(getProject(), "testConstructor.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -367,7 +369,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void _testDestructor() throws Exception { public void _testDestructor() throws Exception {
String content = readTaggedComment("testConstructor"); String content = readTaggedComment("testConstructor");
IFile file= createFile(getProject(), "testConstructor.cpp", content); IFile file= createFile(getProject(), "testConstructor.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -403,7 +405,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void testNamespace() throws Exception { public void testNamespace() throws Exception {
String content = readTaggedComment("testNamespace"); String content = readTaggedComment("testNamespace");
IFile file= createFile(getProject(), "testNamespace.cpp", content); IFile file= createFile(getProject(), "testNamespace.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);
@ -461,7 +463,7 @@ public class BasicCppCallHierarchyTest extends CallHierarchyBaseTest {
public void _testNamespacePart2() throws Exception { public void _testNamespacePart2() throws Exception {
String content = readTaggedComment("testNamespace"); String content = readTaggedComment("testNamespace");
IFile file= createFile(getProject(), "testNamespace.cpp", content); IFile file= createFile(getProject(), "testNamespace.cpp", content);
waitForIndexer(fPdom, file, 1000); waitForIndexer(fPdom, file, MAX_TIME_INDEXER);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CEditor editor= (CEditor) IDE.openEditor(page, file); CEditor editor= (CEditor) IDE.openEditor(page, file);