1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix CallHierarchy tests that were failing due to test order (Junit4)

This commit is contained in:
Marc-Andre Laperle 2013-07-28 01:13:52 -04:00 committed by Marc-Andre Laperle
parent 3812b9ebbc
commit 2f8589b53d

View file

@ -64,6 +64,13 @@ public class CallHierarchyBaseTest extends BaseUITestCase {
@Override
protected void tearDown() throws Exception {
// Set ShowReferencedBy back to its default value
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
CHViewPart ch= (CHViewPart)page.findView(CUIPlugin.ID_CALL_HIERARCHY);
if (ch != null) {
ch.onSetShowReferencedBy(true);
}
closeAllEditors();
if (fCProject != null) {
CProjectHelper.delete(fCProject);