diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/.externalToolBuilders/TestAppBuilder.launch b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/.externalToolBuilders/TestAppBuilder.launch index ecd70297bc7..497c80e85bf 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/.externalToolBuilders/TestAppBuilder.launch +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/.externalToolBuilders/TestAppBuilder.launch @@ -1,14 +1,14 @@ - + - + - + diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/META-INF/MANIFEST.MF b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/META-INF/MANIFEST.MF index 9e8f7038d7d..f31e5541cc1 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/META-INF/MANIFEST.MF +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/META-INF/MANIFEST.MF @@ -25,15 +25,4 @@ Export-Package: org.eclipse.cdt.dsf.mi.service;x-internal:=true, org.eclipse.cdt.tests.dsf.gdb.framework;x-internal:=true, org.eclipse.cdt.tests.dsf.gdb.launching;x-internal:=true, org.eclipse.cdt.tests.dsf.gdb.tests;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7;x-internal:=true, - org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8;x-internal:=true + org.eclipse.cdt.tests.dsf.gdb.tests.nonstop;x-internal:=true diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseParametrizedTestCase.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseParametrizedTestCase.java index bb6158d84c0..df3a0de9572 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseParametrizedTestCase.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseParametrizedTestCase.java @@ -36,7 +36,7 @@ public abstract class BaseParametrizedTestCase extends BaseTestCase { @Parameter public String parameter; // other fields private String gdbVersionPostfix; // this is how we want to invoke it - private boolean remote; // this is if we want remote tests (gdbserver) + protected boolean remote; // this is if we want remote tests (gdbserver) protected static List calculateVersions() { if (globalVersion != null) { @@ -78,25 +78,43 @@ public abstract class BaseParametrizedTestCase extends BaseTestCase { globalVersion = null; } + public void assumeGdbVersionNot(String checkVersion) { + String gdbVersion = getGdbVersion(); + // cannot be that version + boolean match = LaunchUtils.compareVersions(checkVersion, gdbVersion) == 0; + Assume.assumeTrue( + "Skipped because gdb " + gdbVersion + " does not support this feature", + !match); + } + public void assumeGdbVersionLowerThen(String checkVersion) { String gdbVersion = getGdbVersion(); - // otherwise it has to be strictly lower + // has to be strictly lower boolean isLower = LaunchUtils.compareVersions(checkVersion, gdbVersion) > 0; Assume.assumeTrue( "Skipped because gdb " + gdbVersion + " does not support this feature: removed since " + checkVersion, isLower); } + protected String getGdbVersionParameter() { + if (gdbVersionPostfix == null) { + parseParameter(); + if (gdbVersionPostfix == null) { + gdbVersionPostfix = globalVersion; + } + } + return gdbVersionPostfix; + } + protected String getGdbVersion() { - if (gdbVersionPostfix==null) gdbVersionPostfix=globalVersion; - String gdbPath = getProgramPath("gdb", gdbVersionPostfix); + String gdbPath = getProgramPath("gdb", getGdbVersionParameter()); return getGdbVersion(gdbPath); } public void assumeGdbVersionAtLeast(String checkVersion) { String gdbVersion = getGdbVersion(); if (gdbVersion == GDB_NOT_FOUND) { - String gdbPath = getProgramPath("gdb", gdbVersionPostfix); + String gdbPath = getProgramPath("gdb", getGdbVersionParameter()); // fail assumption Assume.assumeFalse("GDB cannot be run " + gdbPath, true); } @@ -117,20 +135,13 @@ public abstract class BaseParametrizedTestCase extends BaseTestCase { @Override protected void initializeLaunchAttributes() { - parseParameter(); - if (gdbVersionPostfix == null) { - // we are not running parametrized - setGdbVersion(); // old way - gdbVersionPostfix = globalVersion; - } else { - String gdbPath = getProgramPath("gdb", gdbVersionPostfix); - String gdbServerPath = getProgramPath("gdbserver", gdbVersionPostfix); - assumeGdbVersionAtLeast(gdbVersionPostfix); - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, gdbPath); - setLaunchAttribute(ATTR_DEBUG_SERVER_NAME, gdbServerPath); - if (remote) - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, - IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE); - } + String gdbPath = getProgramPath("gdb", getGdbVersionParameter()); + String gdbServerPath = getProgramPath("gdbserver", gdbVersionPostfix); + assumeGdbVersionAtLeast(gdbVersionPostfix); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, gdbPath); + setLaunchAttribute(ATTR_DEBUG_SERVER_NAME, gdbServerPath); + if (remote) + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, + IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE); } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllRemoteSuites.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllRemoteSuites.java new file mode 100644 index 00000000000..1bf9762152b --- /dev/null +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllRemoteSuites.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2016 QNX Software System and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Elena Laskavaia (QNX Software System) - initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.tests.dsf.gdb.tests; + +import org.junit.runner.RunWith; +import org.junit.runners.AllTests; + +import junit.framework.JUnit4TestAdapter; +import junit.framework.TestSuite; + +/** + * This suite runs remote tests for all gdb versions (it will ignore setting of "cdt.tests.dsf.gdb.versions", if you + * want run tests controlled by this var run {@link AutomatedSuite} + */ +@RunWith(AllTests.class) +public class AllRemoteSuites { + public static junit.framework.Test suite() { + String gdbVersions = "gdbserver."+String.join(",gdbserver.", ITestConstants.ALL_KNOWN_VERSIONS); + System.setProperty("cdt.tests.dsf.gdb.versions", gdbVersions); + TestSuite suite = new TestSuite(); + suite.addTest(new JUnit4TestAdapter(SuiteGdb.class)); + return suite; + } +} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuites.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuites.java index 50c7f4265ed..03b657810d7 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuites.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuites.java @@ -10,50 +10,23 @@ *******************************************************************************/ package org.eclipse.cdt.tests.dsf.gdb.tests; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.Suite_7_1; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.Suite_7_10; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.Suite_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.Suite_7_2; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.Suite_7_3; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.Suite_7_4; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.Suite_7_5; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.Suite_7_6; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.Suite_7_7; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.Suite_7_8; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.Suite_7_9; import org.junit.runner.RunWith; -import org.junit.runners.Suite; +import org.junit.runners.AllTests; + +import junit.framework.JUnit4TestAdapter; +import junit.framework.TestSuite; /** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit suites we - * want to run. When creating a new suite class, it should be - * added to the list below. - * - * This suite runs all the other suites. + * This suite runs tests for all gdb versions (it will ignore setting of "cdt.tests.dsf.gdb.versions", if you + * want run tests controlled by this var run {@link AutomatedSuite} */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - Suite_7_11.class, - Suite_7_10.class, - Suite_7_9.class, - Suite_7_8.class, - Suite_7_7.class, - Suite_7_6.class, - Suite_7_5.class, - Suite_7_4.class, - Suite_7_3.class, - Suite_7_2.class, - Suite_7_1.class, -// The below test suites have failures -// Don't run them automatically so that we -// can get passing tests in Hudson -// Suite_7_0.class, -// Suite_6_8.class, -// Suite_6_7.class, -// Suite_6_6.class, - /* Add your suite class here */ -}) - -public class AllSuites {} \ No newline at end of file +@RunWith(AllTests.class) +public class AllSuites { + public static junit.framework.Test suite() { + String gdbVersions = String.join(",", ITestConstants.ALL_KNOWN_VERSIONS); + System.setProperty("cdt.tests.dsf.gdb.versions", gdbVersions); + TestSuite suite = new TestSuite(); + suite.addTest(new JUnit4TestAdapter(SuiteGdb.class)); + return suite; + } +} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuitesRemote.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuitesRemote.java deleted file mode 100644 index fa359a038e9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AllSuitesRemote.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests; - -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.Suite_Remote_7_1; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.Suite_Remote_7_10; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.Suite_Remote_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.Suite_Remote_7_2; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.Suite_Remote_7_3; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.Suite_Remote_7_4; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.Suite_Remote_7_5; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.Suite_Remote_7_6; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.Suite_Remote_7_7; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.Suite_Remote_7_8; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.Suite_Remote_7_9; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit suites we - * want to run. When creating a new suite class, it should be - * added to the list below. - * - * This suite runs all the other suites. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - Suite_Remote_7_11.class, - Suite_Remote_7_10.class, - Suite_Remote_7_9.class, - Suite_Remote_7_8.class, - Suite_Remote_7_7.class, - Suite_Remote_7_6.class, - Suite_Remote_7_5.class, - Suite_Remote_7_4.class, - Suite_Remote_7_3.class, - Suite_Remote_7_2.class, - Suite_Remote_7_1.class, -// The below test suites have failures -// Don't run them automatically so that we -// can get passing tests in Hudson -// Suite_Remote_7_0.class, -// Suite_Remote_6_8.class, -// Suite_Remote_6_7.class, -// Suite_Remote_6_6.class, - /* Add your suite class here */ -}) - -public class AllSuitesRemote {} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AutomatedSuite.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AutomatedSuite.java index 893727f881e..fb2a214daa1 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AutomatedSuite.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/AutomatedSuite.java @@ -16,11 +16,14 @@ import org.junit.runners.Suite; /** * This suite runs all suites that are part of the tests automatically run with * each CDT build. + * + * + * This suite runs tests for gdb versions specified by java system variable "cdt.tests.dsf.gdb.versions", i.e. + * -Dcdt.tests.dsf.gdb.versions=gdb.7.7,gdbserver.7.7,gdb.7.11 */ @RunWith(Suite.class) @Suite.SuiteClasses({ SuiteGdb.class, - SuiteGdbVersioned.class, }) public class AutomatedSuite { } \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/CommandTimeoutTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/CommandTimeoutTest.java index 664a608b57f..9d5698cda2c 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/CommandTimeoutTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/CommandTimeoutTest.java @@ -24,8 +24,7 @@ import org.eclipse.cdt.dsf.mi.service.command.commands.MITargetSelect; import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.eclipse.core.runtime.CoreException; @@ -36,9 +35,10 @@ import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class CommandTimeoutTest extends BaseParametrizedTestCase { private static boolean fgTimeoutEnabled = false; private static int fgTimeout = IGdbDebugPreferenceConstants.COMMAND_TIMEOUT_VALUE_DEFAULT; diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java index e558b21a614..7c637e02f92 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java @@ -39,8 +39,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.eclipse.cdt.utils.Addr64; @@ -58,14 +57,15 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * This test case verifies whether breakpoints or watchpoints set from GDB console * are properly synchronized with platform breakpoints. */ @SuppressWarnings( "restriction" ) -@RunWith(BackgroundRunner.class) -public class GDBConsoleBreakpointsTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class GDBConsoleBreakpointsTest extends BaseParametrizedTestCase { final static protected String SOURCE_NAME = "GDBMIGenericTestApp.cc"; @@ -128,16 +128,16 @@ public class GDBConsoleBreakpointsTest extends BaseTestCase { @Override @After public void doAfterTest() throws Exception { - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(GDBConsoleBreakpointsTest.this); - } - }; - fSession.getExecutor().submit(runnable).get(); + if (fSession != null) { + fSession.getExecutor().submit(() -> fSession.removeServiceEventListener(GDBConsoleBreakpointsTest.this)) + .get(); + } + fBreakpointEvents.clear(); - fServicesTracker.dispose(); - fServicesTracker = null; + if (fServicesTracker != null) { + fServicesTracker.dispose(); + fServicesTracker = null; + } super.doAfterTest(); diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleSynchronizingTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleSynchronizingTest.java similarity index 94% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleSynchronizingTest_7_6.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleSynchronizingTest.java index 6443d14bc8a..34328510885 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleSynchronizingTest_7_6.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleSynchronizingTest.java @@ -9,7 +9,7 @@ * Marc Khouzam (Ericsson) - Initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; +package org.eclipse.cdt.tests.dsf.gdb.tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -42,22 +42,21 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; import org.eclipse.debug.core.model.MemoryByte; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * This test case verifies that different commands issued from the * GDB console cause proper updating within the CDT views. */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { +@RunWith(Parameterized.class) +public class GDBConsoleSynchronizingTest extends BaseParametrizedTestCase { final static private String EXEC_NAME = "ConsoleSyncTestApp.exe"; final static private int DEFAULT_TIMEOUT = 1000; @@ -75,20 +74,15 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { private List> fEventsReceived = new ArrayList>(); - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } - @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME); } @Override public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.6"); super.doBeforeTest(); fSession = getGDBLaunch().getSession(); @@ -97,7 +91,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { public void run() { fServicesTracker = new DsfServicesTracker(TestsPlugin.getBundleContext(), fSession.getId()); Assert.assertTrue(fServicesTracker != null); - + fCommandControl = fServicesTracker.getService(IGDBControl.class); Assert.assertTrue(fCommandControl != null); @@ -111,7 +105,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { Assert.assertTrue(fRunControl != null); // Register to breakpoint events - fSession.addServiceEventListener(GDBConsoleSynchronizingTest_7_6.this, null); + fSession.addServiceEventListener(GDBConsoleSynchronizingTest.this, null); } }; fSession.getExecutor().submit(runnable).get(); @@ -119,15 +113,12 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { @Override public void doAfterTest() throws Exception { - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(GDBConsoleSynchronizingTest_7_6.this); - } - }; - fSession.getExecutor().submit(runnable).get(); + if (fSession != null) { + fSession.getExecutor().submit(() -> fSession.removeServiceEventListener(GDBConsoleSynchronizingTest.this)) + .get(); + } fEventsReceived.clear(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); super.doAfterTest(); } @@ -137,14 +128,14 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { /** * This test verifies that setting a variable from the console - * using the set command will properly trigger a DSF event to + * using the set command will properly trigger a DSF event to * indicate the change. This test makes sure the value that * changes is in the memory cache also. */ @Test public void testSettingVariableWithSetWithMemory() throws Throwable { MIStoppedEvent stoppedEvent = SyncUtil.runToLocation("testMemoryChanges"); - + final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); final IExpressionDMContext exprDmc = SyncUtil.createExpression(frameDmc, "i"); @@ -158,15 +149,15 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { fSession.getExecutor().execute(query); IExpressionDMAddress data = query.get(); - + IMemoryDMContext memoryDmc = DMContexts.getAncestorOfType(frameDmc, IMemoryDMContext.class); SyncUtil.readMemory(memoryDmc, data.getAddress(), 0, 1, NEW_VAR_SIZE); - + fEventsReceived.clear(); - + String newValue = NEW_VAR_VALUE; queueConsoleCommand("set variable i=" + newValue); - + IMemoryChangedEvent memoryEvent = waitForEvent(IMemoryChangedEvent.class); assertEquals(1, memoryEvent.getAddresses().length); assertEquals(data.getAddress(), memoryEvent.getAddresses()[0]); @@ -181,7 +172,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { assertEquals(NEW_MEM[i], memory[NEW_VAR_SIZE-1-i].getValue()); } } - + // Now verify the expressions service knows the new value String exprValue = SyncUtil.getExpressionValue(exprDmc, IFormattedValues.HEX_FORMAT); assertEquals(newValue, exprValue); @@ -203,7 +194,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { fSession.getExecutor().execute(query); IExpressionDMAddress data = query.get(); - + fEventsReceived.clear(); final String newValue = NEW_VAR_VALUE; @@ -242,7 +233,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { /** * This test verifies that setting a variable from the console - * using the print command will properly trigger a DSF event + * using the print command will properly trigger a DSF event * to indicate the change. */ @Test @@ -251,13 +242,13 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { } /** - * This test verifies that setting a memory location from the + * This test verifies that setting a memory location from the * console will properly trigger a DSF event to indicate the change. */ @Test public void testSettingMemory() throws Throwable { MIStoppedEvent stoppedEvent = SyncUtil.runToLocation("testMemoryChanges"); - + final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); final IExpressionDMContext exprDmc = SyncUtil.createExpression(frameDmc, "i"); @@ -271,7 +262,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { fSession.getExecutor().execute(query); IExpressionDMAddress data = query.get(); - + fEventsReceived.clear(); final String newValue = NEW_VAR_VALUE; @@ -280,7 +271,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { IMemoryChangedEvent memoryEvent = waitForEvent(IMemoryChangedEvent.class); assertEquals(1, memoryEvent.getAddresses().length); assertEquals(data.getAddress(), memoryEvent.getAddresses()[0]); - + // Now verify the memory service knows the new memory value IMemoryDMContext memoryDmc = DMContexts.getAncestorOfType(frameDmc, IMemoryDMContext.class); MemoryByte[] memory = SyncUtil.readMemory(memoryDmc, data.getAddress(), 0, 1, NEW_VAR_SIZE); @@ -297,9 +288,9 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { String exprValue = SyncUtil.getExpressionValue(exprDmc, IFormattedValues.HEX_FORMAT); assertEquals(newValue, exprValue); } - + /** - * This test verifies that enabling reverse debugging from the + * This test verifies that enabling reverse debugging from the * console will properly trigger a DSF event to indicate the change and * will be processed by the service. */ @@ -307,21 +298,21 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { public void testEnableRecord() throws Throwable { assertTrue("Reverse debugging is not supported", fRunControl instanceof IReverseRunControl); final IReverseRunControl reverseService = (IReverseRunControl)fRunControl; - + SyncUtil.runToLocation("testMemoryChanges"); // check starting state Query query = new Query() { @Override protected void execute(final DataRequestMonitor rm) { - reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); + reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); } }; fSession.getExecutor().execute(query); Boolean enabled = query.get(); assertTrue("Reverse debugging should not be enabled", !enabled); - + fEventsReceived.clear(); queueConsoleCommand("record"); @@ -329,12 +320,12 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { // Wait for the event IReverseModeChangedDMEvent event = waitForEvent(IReverseModeChangedDMEvent.class); assertEquals(true, event.isReverseModeEnabled()); - + // Check the service query = new Query() { @Override protected void execute(final DataRequestMonitor rm) { - reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); + reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); } }; fSession.getExecutor().execute(query); @@ -343,7 +334,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { } /** - * This test verifies that disabling reverse debugging from the + * This test verifies that disabling reverse debugging from the * console will properly trigger a DSF event to indicate the change and * will be processed by the service. */ @@ -351,7 +342,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { public void testDisableRecord() throws Throwable { assertTrue("Reverse debugging is not supported", fRunControl instanceof IReverseRunControl); final IReverseRunControl reverseService = (IReverseRunControl)fRunControl; - + SyncUtil.runToLocation("testMemoryChanges"); fEventsReceived.clear(); @@ -364,7 +355,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { new ImmediateRequestMonitor(rm) { @Override protected void handleSuccess() { - reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); + reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); } }); } @@ -373,7 +364,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { fSession.getExecutor().execute(query); Boolean enabled = query.get(); assertTrue("Reverse debugging should be enabled", enabled); - + // Wait for the event to avoid confusing it with the next one IReverseModeChangedDMEvent event = waitForEvent(IReverseModeChangedDMEvent.class); assertEquals(true, event.isReverseModeEnabled()); @@ -384,12 +375,12 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { // Wait for the event event = waitForEvent(IReverseModeChangedDMEvent.class); assertEquals(false, event.isReverseModeEnabled()); - + // Check the service query = new Query() { @Override protected void execute(final DataRequestMonitor rm) { - reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); + reverseService.isReverseModeEnabled(fCommandControl.getContext(), rm); } }; fSession.getExecutor().execute(query); @@ -400,7 +391,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { ////////////////////////////////////////////////////////////////////////////////////// // End of tests ////////////////////////////////////////////////////////////////////////////////////// - + @DsfServiceEventHandler public void eventDispatched(IDMEvent e) { synchronized(this) { @@ -419,7 +410,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { protected void execute(DataRequestMonitor rm) { fCommandControl.queueCommand( fCommandControl.getCommandFactory().createMIInterpreterExecConsole( - fCommandControl.getContext(), + fCommandControl.getContext(), command), rm); } @@ -427,7 +418,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { fSession.getExecutor().execute(query); query.get(timeout, unit); } - + private > V waitForEvent(Class eventType) throws Exception { return waitForEvent(eventType, DEFAULT_TIMEOUT); } @@ -439,7 +430,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { synchronized(this) { try { wait(timeout); - } + } catch (InterruptedException ex) { } } @@ -450,7 +441,7 @@ public class GDBConsoleSynchronizingTest_7_6 extends BaseTestCase { } return (V)event; } - + @SuppressWarnings("unchecked") private synchronized > V getEvent(Class eventType) { for (IDMEvent e : fEventsReceived) { diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java index d6c7f511bd5..8158a3055c9 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBPatternMatchingExpressionsTest.java @@ -49,16 +49,16 @@ import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.mi.service.command.output.MIDataListRegisterNamesInfo; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class GDBPatternMatchingExpressionsTest extends BaseParametrizedTestCase { private static final String EXEC_NAME = "PatternMatchingExpressionsTestApp.exe"; private DsfSession fSession; @@ -97,7 +97,10 @@ public class GDBPatternMatchingExpressionsTest extends BaseTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); fExpService = null; - fServicesTracker.dispose(); + if (fServicesTracker != null) { + fServicesTracker.dispose(); + fServicesTracker = null; + } } //************************************************************************************** diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java index 1f46c5d7672..b780031af02 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java @@ -11,8 +11,7 @@ *******************************************************************************/ package org.eclipse.cdt.tests.dsf.gdb.tests; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -29,16 +28,16 @@ import org.eclipse.cdt.dsf.debug.service.IProcesses.IThreadDMData; import org.eclipse.cdt.dsf.mi.service.IMIProcesses; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class GDBProcessesTest extends BaseParametrizedTestCase { /* * Name of the executable */ @@ -72,14 +71,14 @@ public class GDBProcessesTest extends BaseTestCase { super.doAfterTest(); fProcService = null; - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); } - + @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, + + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME); } @@ -114,14 +113,15 @@ public class GDBProcessesTest extends BaseTestCase { * This defaults to false, and is overridden for specific versions of gdb. */ protected boolean threadNamesSupported() { - return false; + return !runningOnWindows() && !isRemoteSession(); } - /* + /* * getThreadData() for multiple threads */ @Test public void getThreadData() throws Throwable { + assumeGdbVersionAtLeast("7.3"); // Start the threads one by one to make sure they are discovered by gdb in the right // order. for (int i = 0; i < 5; i++) { diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBRemoteTracepointsTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBRemoteTracepointsTest.java similarity index 90% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBRemoteTracepointsTest_7_0.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBRemoteTracepointsTest.java index 3aeb400107f..ac0d96b72d0 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBRemoteTracepointsTest_7_0.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBRemoteTracepointsTest.java @@ -4,11 +4,11 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Ericsson - Initial implementation of Test cases *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; +package org.eclipse.cdt.tests.dsf.gdb.tests; import static org.junit.Assert.assertEquals; @@ -35,28 +35,25 @@ import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.CollectAction; import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.EvaluateAction; import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.TracepointActionManager; +import org.eclipse.cdt.dsf.gdb.launching.LaunchUtils; import org.eclipse.cdt.dsf.mi.service.MIBreakpointDMData; import org.eclipse.cdt.dsf.mi.service.MIBreakpoints; import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; +import org.eclipse.core.runtime.Platform; +import org.junit.Assume; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } - +@RunWith(Parameterized.class) +public class GDBRemoteTracepointsTest extends BaseParametrizedTestCase { protected DsfSession fSession; protected DsfServicesTracker fServicesTracker; protected IBreakpoints fBreakpointService; @@ -76,7 +73,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { protected static final String NO_CONDITION = ""; protected static final String NO_COMMANDS = ""; // private static final int LAST_LINE_NUMBER = 94; - // + // // private static final int TOTAL_FRAMES_TO_BE_COLLECTED = 1 + 1 + 10 + 1 + 10000; protected final static int[] PASS_COUNTS = {12, 2, 32, 6, 128, 0, 0, 0, 0, 0, 0, 0}; @@ -153,8 +150,9 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { @Override public void doBeforeTest() throws Exception { + Assume.assumeTrue("Skipping non-remote", remote); super.doBeforeTest(); - + fSession = getGDBLaunch().getSession(); Runnable runnable = new Runnable() { @Override @@ -164,7 +162,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { fBreakpointService = fServicesTracker.getService(IBreakpoints.class); // fTraceService = fServicesTracker.getService(ITraceControl.class); - fSession.addServiceEventListener(GDBRemoteTracepointsTest_7_0.this, null); + fSession.addServiceEventListener(GDBRemoteTracepointsTest.this, null); // Create a large array to make sure we don't run out fTracepoints = new IBreakpointDMContext[100]; @@ -185,13 +183,13 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME); - + // GDB tracepoints are only supported on a remote target (e.g., using gdbserver) setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE); - + // To test both fast and normal tracepoints, we use the FAST_THEN_NORMAL setting setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_TRACEPOINT_MODE, IGDBLaunchConfigurationConstants.DEBUGGER_TRACEPOINT_FAST_THEN_NORMAL); @@ -200,19 +198,14 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { @Override public void doAfterTest() throws Exception { super.doAfterTest(); - - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(GDBRemoteTracepointsTest_7_0.this); - } - }; - fSession.getExecutor().submit(runnable).get(); + if (fSession != null) + fSession.getExecutor().submit(() -> fSession.removeServiceEventListener(GDBRemoteTracepointsTest.this)) + .get(); fBreakpointService = null; - fServicesTracker.dispose(); + if (fServicesTracker != null) + fServicesTracker.dispose(); } - // ********************************************************************* // Below are utility methods. // ********************************************************************* @@ -290,13 +283,6 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { } } - protected boolean acceptsFastTpOnFourBytes() { - // Starting with GDB 7.4, fast tracepoints can be set - // on 4-byte instructions on a 32bit machine. Before that, or on 64bits, - // it was on 5-bytes or more. - return false; - } - // ********************************************************************* // Breakpoint service methods (to use with tracepoints). // ********************************************************************* @@ -338,13 +324,13 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { } } - protected void updateBreakpoint(final IBreakpointDMContext breakpoint, final Map delta) + protected void updateBreakpoint(final IBreakpointDMContext breakpoint, final Map delta) throws Throwable { Query query = new Query() { @Override protected void execute(DataRequestMonitor rm) { - fBreakpointService.updateBreakpoint(breakpoint, delta, rm); + fBreakpointService.updateBreakpoint(breakpoint, delta, rm); } }; @@ -356,7 +342,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { } } - protected IBreakpointDMData getBreakpoint(final IBreakpointDMContext breakpoint) + protected IBreakpointDMData getBreakpoint(final IBreakpointDMContext breakpoint) throws Throwable { Query query = new Query() { @@ -409,7 +395,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.canStartTracing(fTraceTargetDmc, + // fTraceService.canStartTracing(fTraceTargetDmc, // new DataRequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -425,10 +411,10 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // assertTrue("Not allowed to start tracing!", (Boolean)wait.getReturnInfo()); // // wait.waitReset(); - // + // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.startTracing(fTraceTargetDmc, + // fTraceService.startTracing(fTraceTargetDmc, // new RequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -454,7 +440,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.canStopTracing(fTraceTargetDmc, + // fTraceService.canStopTracing(fTraceTargetDmc, // new DataRequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -470,10 +456,10 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // assertTrue("Not allowed to stop tracing!", (Boolean)wait.getReturnInfo()); // // wait.waitReset(); - // + // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.stopTracing(fTraceTargetDmc, + // fTraceService.stopTracing(fTraceTargetDmc, // new RequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -493,7 +479,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.isTracing(fTraceTargetDmc, + // fTraceService.isTracing(fTraceTargetDmc, // new DataRequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -506,17 +492,17 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); // assertTrue(wait.getMessage(), wait.isOK()); - // + // // return (Boolean)wait.getReturnInfo(); // } - // + // // private ITraceStatusDMData getTraceStatus() throws InterruptedException // { // final AsyncCompletionWaitor wait = new AsyncCompletionWaitor(); // // fTraceService.getExecutor().submit(new Runnable() { // public void run() { - // fTraceService.getTraceStatus(fTraceTargetDmc, + // fTraceService.getTraceStatus(fTraceTargetDmc, // new DataRequestMonitor(fTraceService.getExecutor(), null) { // @Override // protected void handleCompleted() { @@ -529,7 +515,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); // assertTrue(wait.getMessage(), wait.isOK()); - // + // // return (ITraceStatusDMData)wait.getReturnInfo(); // } @@ -539,7 +525,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { protected IBreakpointDMContext[] fTracepoints = null; - // private void checkTraceStatus(boolean supported, boolean active, int frames, + // private void checkTraceStatus(boolean supported, boolean active, int frames, // STOP_REASON_ENUM reason, Integer stoppingTracepoint) throws Throwable { // ITraceStatusDMData status = getTraceStatus(); // assertTrue("Error tracing supported should be " + supported + " but was " + status.isTracingSupported(), @@ -556,16 +542,16 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // assertTrue("Total buffer size should be positive but is " + // status.getTotalBufferSize(), // status.getTotalBufferSize() > 0); - // + // // if (fTotalTracingBufferSize == 0) { // // Initialize buffer - // fTotalTracingBufferSize = status.getTotalBufferSize(); + // fTotalTracingBufferSize = status.getTotalBufferSize(); // } else { // assertTrue("Total buffer size changed! Should be " + fTotalTracingBufferSize + // " but got " + status.getTotalBufferSize(), // status.getTotalBufferSize() == fTotalTracingBufferSize); // } - // + // // assertTrue("Expected stopping reason " + reason + " but got " + status.getStopReason(), // status.getStopReason() == reason); // assertTrue("Expected stopping bp " + stoppingTracepoint + " but got " + status.getStoppingTracepoint(), @@ -621,9 +607,9 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // Ensure that the tracepoints were correctly installed MIBreakpointDMData tp = (MIBreakpointDMData) getBreakpoint(fTracepoints[i]); assertTrue("tracepoint "+i+" is not a tracepoint but a " + tp.getBreakpointType(), - tp.getBreakpointType().equals(MIBreakpoints.TRACEPOINT)); + tp.getBreakpointType().equals(MIBreakpoints.TRACEPOINT)); assertTrue("tracepoint "+i+" should be a " + (data.isFastTp?"fast":"normal")+" tracepoint but is not", - tp.getType().equals("fast tracepoint") == data.isFastTp); + tp.getType().equals("fast tracepoint") == data.isFastTp); assertTrue("tracepoint "+i+" mismatch (wrong file name) got " + tp.getFileName(), tp.getFileName().equals(data.sourceFile)); assertTrue("tracepoint "+i+" mismatch (wrong line number) got " + tp.getLineNumber(), @@ -642,7 +628,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { } } - protected void checkTracepoints(boolean useCond, boolean useCount, boolean enabled, boolean useActions) + protected void checkTracepoints(boolean useCond, boolean useCount, boolean enabled, boolean useActions) throws Throwable { TracepointData[] dataArray = new TracepointData[] { new TracepointData(LINE_NUMBER_1_BYTE_INSTR, useCond ? CONDITIONS[0] : NO_CONDITION, useCount ? PASS_COUNTS[0] : 0, enabled, useActions ? COLLECT_ACTIONS[0].toString() : NO_COMMANDS, false), @@ -654,19 +640,19 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { checkTracepoints(dataArray); } - - protected void createTracepoints(boolean useCond, boolean useCount, boolean enabled, boolean useActions) - throws Throwable + + protected void createTracepoints(boolean useCond, boolean useCount, boolean enabled, boolean useActions) + throws Throwable { Map attributes = null; - int[] lineNumbers = { - LINE_NUMBER_1_BYTE_INSTR, - LINE_NUMBER_2_BYTE_INSTR, - LINE_NUMBER_3_BYTE_INSTR, - LINE_NUMBER_4_BYTE_INSTR, + int[] lineNumbers = { + LINE_NUMBER_1_BYTE_INSTR, + LINE_NUMBER_2_BYTE_INSTR, + LINE_NUMBER_3_BYTE_INSTR, + LINE_NUMBER_4_BYTE_INSTR, LINE_NUMBER_5_BYTE_INSTR }; - + for (int i = 0; i < lineNumbers.length; i++) { attributes = new HashMap(); attributes.put(MIBreakpoints.BREAKPOINT_TYPE, MIBreakpoints.TRACEPOINT); @@ -676,7 +662,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { if (useCount) attributes.put(MIBreakpoints.PASS_COUNT, PASS_COUNTS[i]); if (useCond) attributes.put(MIBreakpoints.CONDITION, CONDITIONS[i]); if (useActions) attributes.put(MIBreakpoints.COMMANDS, COLLECT_ACTIONS[i].getName()); - + fTracepoints[i] = insertBreakpoint(fBreakpointsDmc, attributes); waitForBreakpointEvent(); @@ -687,12 +673,12 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { checkTracepoints(useCond, useCount, enabled, useActions); } - + /** * This test makes sure that the tracing status is correct when we start. * It also stores the total buffer size to be used by other tests. * This test is being run before every other test by being called - * by the @Before method; this allows to verify every launch of GDB. + * by the @Before method; this allows to verify every launch of GDB. */ @Test @Ignore @@ -706,7 +692,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { * - using a method name * - using a filename and line number * - * It also set a fast tracepoint by + * It also set a fast tracepoint by */ @Test public void createTracepoints() throws Throwable { @@ -861,7 +847,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { */ @Test public void createTracepointWithMultipleCommands() throws Throwable { - + String commandsNames1 = COLLECT_ACTIONS[0].getName() + TracepointActionManager.TRACEPOINT_ACTION_DELIMITER + COLLECT_ACTIONS[1].getName() + TracepointActionManager.TRACEPOINT_ACTION_DELIMITER + COLLECT_ACTIONS[3].getName(); @@ -882,26 +868,26 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { String commandsResult3 = COLLECT_ACTIONS[4].toString() + TracepointActionManager.TRACEPOINT_ACTION_DELIMITER + COLLECT_ACTIONS[0].toString() + TracepointActionManager.TRACEPOINT_ACTION_DELIMITER + COLLECT_ACTIONS[1].toString(); - + String cmdNames[] = new String[] { commandsNames1, COLLECT_ACTIONS[0].getName(), commandsNames2, COLLECT_ACTIONS[2].getName(), commandsNames3 }; String cmdResults[] = new String[] { commandsResult1, COLLECT_ACTIONS[0].toString(), commandsResult2, COLLECT_ACTIONS[2].toString(), commandsResult3}; - + Map attributes = null; - int[] lineNumbers = { - LINE_NUMBER_1_BYTE_INSTR, - LINE_NUMBER_2_BYTE_INSTR, - LINE_NUMBER_3_BYTE_INSTR, - LINE_NUMBER_4_BYTE_INSTR, + int[] lineNumbers = { + LINE_NUMBER_1_BYTE_INSTR, + LINE_NUMBER_2_BYTE_INSTR, + LINE_NUMBER_3_BYTE_INSTR, + LINE_NUMBER_4_BYTE_INSTR, LINE_NUMBER_5_BYTE_INSTR }; - + for (int i = 0; i < lineNumbers.length; i++) { attributes = new HashMap(); attributes.put(MIBreakpoints.BREAKPOINT_TYPE, MIBreakpoints.TRACEPOINT); attributes.put(MIBreakpoints.FILE_NAME, SOURCE_NAME); attributes.put(MIBreakpoints.LINE_NUMBER, lineNumbers[i]); attributes.put(MIBreakpoints.COMMANDS, cmdNames[i]); - + fTracepoints[i] = insertBreakpoint(fBreakpointsDmc, attributes); waitForBreakpointEvent(); @@ -936,7 +922,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { public void createTracepointDisabledWithCommandsConditionPasscount() throws Throwable { createTracepoints(true, true, false, true); } - + // /** // * This test sets the different types of tracepoints and then sets some eval actions // */ @@ -949,7 +935,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // testCreateTracepoints(); // testActions(new String[] {ACTIONS1, ACTIONS2, ACTIONS3, ""}); // } - // + // // /** // * This test sets the different types of tracepoints and then sets some while-stepping actions // */ @@ -964,7 +950,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // } // // /** - // * This test sets the different types of tracepoints and then sets a mix of different + // * This test sets the different types of tracepoints and then sets a mix of different // * tracepoint actions // */ // //@Test @@ -1004,7 +990,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // * - using a filename and line number // * - using a method name // * - using a method address - // * + // * // * and confirms they are installed when tracing starts // */ // @Test @@ -1016,7 +1002,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // stopTracing(); // checkTraceStatus(true, false, TOTAL_FRAMES_TO_BE_COLLECTED); // } - // + // // /** // * This test sets the different types of tracepoints and then deletes them // * and confirms they are not installed when tracing starts @@ -1064,7 +1050,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // testTracepointPasscount(); // startTracing(); // SyncUtil.SyncRunToLocation(Integer.toString(LAST_LINE_NUMBER)); - // + // // checkTraceStatus(true, false, // 1 + 1 + 10 + 1 + PASS_COUNTS[4], // STOP_REASON_ENUM.PASSCOUNT, 6); @@ -1085,7 +1071,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // // startTracing(); // SyncUtil.SyncRunToLocation(Integer.toString(LAST_LINE_NUMBER)); - // + // // checkTraceStatus(true, false, // 1 + 1 + 10 + 1, // STOP_REASON_ENUM.PASSCOUNT, 5); @@ -1099,7 +1085,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // public void testTracepointConditionAndRun() throws Throwable { // // Use trace state variables and stuff // } - // + // // /** // * This test sets the different types of tracepoints and then sets some collect actions // * and confirms the proper information is collected @@ -1128,7 +1114,7 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // } // // /** - // * This test sets the different types of tracepoints and then sets a mix of different + // * This test sets the different types of tracepoints and then sets a mix of different // * tracepoint actions and confirms the proper information is collected // */ // //@Test @@ -1146,5 +1132,59 @@ public class GDBRemoteTracepointsTest_7_0 extends BaseTestCase { // } // + protected boolean acceptsFastTpOnFourBytes() { + String gdbVersion = getGdbVersion(); + boolean isLower = LaunchUtils.compareVersions("7.4", gdbVersion) > 0; + if (isLower) return false; + // With GDB 7.4, fast tracepoints only need an + // instruction of 4 bytes or more when on a 32bit architecture, instead of 5. + if (Platform.getOS().equals(Platform.ARCH_X86)) { + return true; + } + return false; + } + /** + * This test sets the different types of tracepoints and then sets some string collection actions + */ + @Test + public void tracepointActionsWithCollectStrings() throws Throwable { + assumeGdbVersionAtLeast("7.4"); + TracepointActionManager tracepointActionMgr = TracepointActionManager.getInstance(); + + CollectAction action1 = new CollectAction(); + action1.setCollectString("/s $locals"); + action1.setName("Collect string locals"); + tracepointActionMgr.addAction(action1); + + CollectAction action2 = new CollectAction(); + action2.setCollectString("/s3 $locals, $reg"); + action2.setName("Collect string locals, reg"); + tracepointActionMgr.addAction(action2); + + createTracepoints(); + + Map delta = new HashMap(); + // Set conditions for all tracepoints + delta.put(MIBreakpoints.COMMANDS, action1.getName()); + updateBreakpoint(fTracepoints[0], delta); + delta.put(MIBreakpoints.COMMANDS, action2.getName()); + updateBreakpoint(fTracepoints[1], delta); + delta.put(MIBreakpoints.COMMANDS, action1.getName()); + updateBreakpoint(fTracepoints[2], delta); + delta.put(MIBreakpoints.COMMANDS, action1.getName()); + updateBreakpoint(fTracepoints[3], delta); + delta.put(MIBreakpoints.COMMANDS, action2.getName()); + updateBreakpoint(fTracepoints[4], delta); + + TracepointData[] dataArray = new TracepointData[] { + new TracepointData(LINE_NUMBER_1_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), false), + new TracepointData(LINE_NUMBER_2_BYTE_INSTR, NO_CONDITION, 0, true, action2.toString(), false), + new TracepointData(LINE_NUMBER_3_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), false), + new TracepointData(LINE_NUMBER_4_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), acceptsFastTpOnFourBytes()), + new TracepointData(LINE_NUMBER_5_BYTE_INSTR, NO_CONDITION, 0, true, action2.toString(), true), + }; + + checkTracepoints(dataArray); + } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/ITestConstants.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/ITestConstants.java index 701c25593c1..4d3d6319504 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/ITestConstants.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/ITestConstants.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Ericsson AB - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Tests for GDB 7.4 @@ -14,7 +14,6 @@ package org.eclipse.cdt.tests.dsf.gdb.tests; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; public interface ITestConstants { - public static final String SUFFIX_GDB_6_6 = "6.6"; public static final String SUFFIX_GDB_6_7 = "6.7"; public static final String SUFFIX_GDB_6_8 = "6.8"; @@ -30,7 +29,24 @@ public interface ITestConstants { public static final String SUFFIX_GDB_7_9 = "7.9"; public static final String SUFFIX_GDB_7_10 = "7.10"; public static final String SUFFIX_GDB_7_11 = "7.11"; - + public static String[] ALL_KNOWN_VERSIONS = new String[] { + ITestConstants.SUFFIX_GDB_6_6, + ITestConstants.SUFFIX_GDB_6_7, + ITestConstants.SUFFIX_GDB_6_8, + ITestConstants.SUFFIX_GDB_7_0, + ITestConstants.SUFFIX_GDB_7_1, + ITestConstants.SUFFIX_GDB_7_2, + ITestConstants.SUFFIX_GDB_7_3, + ITestConstants.SUFFIX_GDB_7_4, + ITestConstants.SUFFIX_GDB_7_5, + ITestConstants.SUFFIX_GDB_7_6, + ITestConstants.SUFFIX_GDB_7_7, + ITestConstants.SUFFIX_GDB_7_8, + ITestConstants.SUFFIX_GDB_7_9, + ITestConstants.SUFFIX_GDB_7_10, + ITestConstants.SUFFIX_GDB_7_11, + // add versions here + }; // Attribute that allows a test to request not to start gdbserver even if the session is a remote one public static final String LAUNCH_GDB_SERVER = TestsPlugin.PLUGIN_ID + ".launchGdbServer"; } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/LaunchConfigurationAndRestartTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/LaunchConfigurationAndRestartTest.java index b2fffb68a5c..806c33d66f3 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/LaunchConfigurationAndRestartTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/LaunchConfigurationAndRestartTest.java @@ -12,12 +12,10 @@ *******************************************************************************/ package org.eclipse.cdt.tests.dsf.gdb.tests; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.notNullValue; +import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; + +import static org.junit.Assert.*; import java.io.File; import java.util.HashMap; @@ -30,11 +28,16 @@ import org.eclipse.cdt.debug.core.CDIDebugModel; import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants; import org.eclipse.cdt.debug.core.model.ICBreakpointType; import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor; +import org.eclipse.cdt.dsf.concurrent.ImmediateDataRequestMonitor; import org.eclipse.cdt.dsf.concurrent.Query; +import org.eclipse.cdt.dsf.datamodel.DMContexts; +import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; import org.eclipse.cdt.dsf.debug.service.IExpressions; import org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMContext; import org.eclipse.cdt.dsf.debug.service.IFormattedValues.FormattedValueDMData; +import org.eclipse.cdt.dsf.debug.service.IRunControl.IExecutionDMContext; import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType; +import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData; import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlShutdownDMEvent; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; import org.eclipse.cdt.dsf.gdb.IGdbDebugConstants; @@ -42,11 +45,15 @@ import org.eclipse.cdt.dsf.gdb.launching.InferiorRuntimeProcess; import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl; import org.eclipse.cdt.dsf.mi.service.MIExpressions; import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; +import org.eclipse.cdt.dsf.mi.service.command.output.CLITraceInfo; +import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakListInfo; +import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakpoint; import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.Intermittent; +import org.eclipse.cdt.tests.dsf.gdb.framework.IntermittentRule; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; @@ -55,11 +62,15 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchManager; import org.eclipse.debug.core.model.IProcess; import org.junit.Ignore; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest extends BaseTestCase { +@RunWith(Parameterized.class) +@Intermittent(repetition = 3) +public class LaunchConfigurationAndRestartTest extends BaseParametrizedTestCase { + public @Rule IntermittentRule intermittentRule = new IntermittentRule(); protected static final String EXEC_NAME = "LaunchConfigurationAndRestartTestApp.exe"; protected static final int FIRST_LINE_IN_MAIN = 27; @@ -115,9 +126,9 @@ public class LaunchConfigurationAndRestartTest extends BaseTestCase { // Restart the program if we are testing such a case if (fRestart) { synchronized (this) { - wait(1000); + wait(1000); // XXX: horrible hack, what are we waiting for? } - fRestart = false; + fRestart = false; SyncUtil.restart(getGDBLaunch()); } } @@ -215,8 +226,9 @@ public class LaunchConfigurationAndRestartTest extends BaseTestCase { * 17^done */ @Test - @Ignore + public void testSourceGdbInit() throws Throwable { + assumeGdbVersionAtLeast("7.2"); setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_GDB_INIT, "data/launch/src/launchConfigTestGdbinit"); doLaunch(); @@ -274,8 +286,8 @@ public class LaunchConfigurationAndRestartTest extends BaseTestCase { * Repeat the test testSourceGdbInit, but after a restart. */ @Test - @Ignore public void testSourceGdbInitRestart() throws Throwable { + assumeGdbVersionAtLeast("7.2"); fRestart = true; testSourceGdbInit(); } @@ -743,6 +755,7 @@ public class LaunchConfigurationAndRestartTest extends BaseTestCase { */ @Test public void testExitCodeSet() throws Throwable { + assumeGdbVersionAtLeast("7.3"); doLaunch(); ServiceEventWaitor shutdownEventWaitor = new ServiceEventWaitor( @@ -779,4 +792,305 @@ public class LaunchConfigurationAndRestartTest extends BaseTestCase { } assert false; } + + + /** + * This test will confirm that we have turned on "pending breakpoints" + * The pending breakpoint setting only affects CLI commands so we have + * to test with one. We don't have classes to set breakpoints using CLI, + * but we do for tracepoints, which is the same for this test. + * + * The pending breakpoint feature only works with tracepoints starting + * with GDB 7.0. + * + * We could run this test before 7.0 but we would have to use a breakpoint + * set using CLI commands. + */ + @Test + public void testPendingBreakpointSetting() throws Throwable { + assumeGdbVersionAtLeast("7.0"); + doLaunch(); + MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); + + final IBreakpointsTargetDMContext bpTargetDmc = DMContexts.getAncestorOfType(stoppedEvent.getDMContext(), + IBreakpointsTargetDMContext.class); + Query query = new Query() { + @Override + protected void execute(final DataRequestMonitor rm) { + fGdbControl.queueCommand( + fGdbControl.getCommandFactory().createCLITrace(bpTargetDmc, "invalid", ""), + new ImmediateDataRequestMonitor(rm) { + @Override + protected void handleSuccess() { + fGdbControl.queueCommand( + fGdbControl.getCommandFactory().createMIBreakList(bpTargetDmc), + new ImmediateDataRequestMonitor(rm) { + @Override + protected void handleSuccess() { + rm.setData(getData()); + rm.done(); + } + }); + } + }); + } + }; + try { + fExpService.getExecutor().execute(query); + MIBreakListInfo value = query.get(500, TimeUnit.MILLISECONDS); + MIBreakpoint[] bps = value.getMIBreakpoints(); + assertTrue("Expected 1 breakpoint but got " + bps.length, + bps.length == 1); + assertTrue("Expending a breakpoint but got one at " + bps[0].getAddress(), + bps[0].getAddress().equals("")); + } catch (InterruptedException e) { + fail(e.getMessage()); + } catch (ExecutionException e) { + fail(e.getCause().getMessage()); + } catch (TimeoutException e) { + fail(e.getMessage()); + } + } + + /** + * This test will tell the launch to "stop on main" at method main() with reverse + * debugging enabled. We will verify that the launch stops at main() and that + * reverse debugging is enabled. + * + * In this test, the execution crosses getenv() while recording is enabled. gdb 7.0 + * and 7.1 have trouble with that. We disable the test for those, and enable it for + * 7.2 and upwards. + */ + @Test + public void testStopAtMainWithReverse() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, true); + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "main"); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); + doLaunch(); + + MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); + // Make sure we stopped at the first line of main + assertTrue("Expected to stop at main:" + FIRST_LINE_IN_MAIN + " but got " + + stoppedEvent.getFrame().getFunction() + ":" + + Integer.toString(stoppedEvent.getFrame().getLine()), + stoppedEvent.getFrame().getFunction().equals("main") && + stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); + + // Step a couple of times and check where we are + final int NUM_STEPS = 3; + stoppedEvent = SyncUtil.step(NUM_STEPS, StepType.STEP_OVER); + assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN+NUM_STEPS) + " but got " + + stoppedEvent.getFrame().getFunction() + ":" + + Integer.toString(stoppedEvent.getFrame().getLine()), + stoppedEvent.getFrame().getFunction().equals("main") && + stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN+NUM_STEPS); + + // Now step backwards to make sure reverse was enabled + + final ServiceEventWaitor eventWaitor = + new ServiceEventWaitor( + fSession, + MIStoppedEvent.class); + + final int REVERSE_NUM_STEPS = 2; + final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); + Query query = new Query() { + @Override + protected void execute(DataRequestMonitor rm) { + fGdbControl.queueCommand( + fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), + rm); + } + }; + try { + fGdbControl.getExecutor().execute(query); + query.get(500, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + fail(e.getMessage()); + } catch (ExecutionException e) { + fail(e.getCause().getMessage()); + } catch (TimeoutException e) { + fail(e.getMessage()); + } + + stoppedEvent = eventWaitor.waitForEvent(1000); + + assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN+NUM_STEPS-REVERSE_NUM_STEPS) + " but got " + + stoppedEvent.getFrame().getFunction() + ":" + + Integer.toString(stoppedEvent.getFrame().getLine()), + stoppedEvent.getFrame().getFunction().equals("main") && + stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN+NUM_STEPS-REVERSE_NUM_STEPS); + } + + /** + * Repeat the test testStopAtMainWithReverse, but after a restart. + */ + @Test + public void testStopAtMainWithReverseRestart() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + fRestart = true; + testStopAtMainWithReverse(); + } + + /** + * This test will tell the launch to "stop on main" at method stopAtOther(), + * with reverse debugging enabled. We will then verify that the launch is properly + * stopped at stopAtOther() and that it can go backwards until main() (this will + * confirm that reverse debugging was enabled at the very start). + * + * In this test, the execution crosses getenv() while recording is enabled. gdb 7.0 + * and 7.1 have trouble with that. We disable the test for those, and enable it for + * 7.2 and upwards. + */ + @Test + public void testStopAtOtherWithReverse() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, true); + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "stopAtOther"); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); + doLaunch(); + + MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); + + // The initial stopped event is not the last stopped event. + // With reverse we have to stop the program, turn on reverse and start it again. + // Let's get the frame where we really are stopped right now. + final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); + IFrameDMData frame = SyncUtil.getFrameData(execDmc, 0); + + // Make sure we stopped at the first line of main + assertTrue("Expected to stop at stopAtOther but got " + + frame.getFunction(), + frame.getFunction().equals("stopAtOther")); + + // Now step backwards all the way to the start to make sure reverse was enabled from the very start + final ServiceEventWaitor eventWaitor = + new ServiceEventWaitor( + fSession, + MIStoppedEvent.class); + + final int REVERSE_NUM_STEPS = 3; + Query query2 = new Query() { + @Override + protected void execute(DataRequestMonitor rm) { + fGdbControl.queueCommand( + fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), + rm); + } + }; + try { + fGdbControl.getExecutor().execute(query2); + query2.get(500, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + fail(e.getMessage()); + } catch (ExecutionException e) { + fail(e.getCause().getMessage()); + } catch (TimeoutException e) { + fail(e.getMessage()); + } + + stoppedEvent = eventWaitor.waitForEvent(1000); + + assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN) + " but got " + + stoppedEvent.getFrame().getFunction() + ":" + + Integer.toString(stoppedEvent.getFrame().getLine()), + stoppedEvent.getFrame().getFunction().equals("main") && + stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); + } + + /** + * Repeat the test testStopAtOtherWithReverse, but after a restart. + */ + @Test + @Ignore("Fails. Investigate what it needs to wait for.") + public void testStopAtOtherWithReverseRestart() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + fRestart = true; + testStopAtOtherWithReverse(); + } + /** + * This test will set a breakpoint at the last line of the program and will tell + * the launch to NOT "stop on main", with reverse debugging enabled. We will + * verify that the first stop is at the last line of the program but that the program + * can run backwards until main() (this will confirm that reverse debugging was + * enabled at the very start). + */ + @Test + @Ignore("TODO: this is not working because it does not insert the breakpoint propertly") + public void testNoStopAtMainWithReverse() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); + // Set this one as well to make sure it gets ignored + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "main"); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); + + // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED + // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED + // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED + // see testNoStopAtMain() + + doLaunch(); + + MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); + + // The initial stopped event is not the last stopped event. + // With reverse we have to stop the program, turn on reverse and start it again. + // Let's get the frame where we really are stopped right now. + final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); + IFrameDMData frame = SyncUtil.getFrameData(execDmc, 0); + + // Make sure we stopped at the first line of main + assertTrue("Expected to stop at main:" + LAST_LINE_IN_MAIN + " but got " + + frame.getFunction() + ":" + + Integer.toString(frame.getLine()), + frame.getFunction().equals("main") && + frame.getLine() == LAST_LINE_IN_MAIN); + + // Now step backwards all the way to the start to make sure reverse was enabled from the very start + final ServiceEventWaitor eventWaitor = + new ServiceEventWaitor( + fSession, + MIStoppedEvent.class); + + final int REVERSE_NUM_STEPS = 3; + Query query2 = new Query() { + @Override + protected void execute(DataRequestMonitor rm) { + fGdbControl.queueCommand( + fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), + rm); + } + }; + try { + fGdbControl.getExecutor().execute(query2); + query2.get(500, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + fail(e.getMessage()); + } catch (ExecutionException e) { + fail(e.getCause().getMessage()); + } catch (TimeoutException e) { + fail(e.getMessage()); + } + + stoppedEvent = eventWaitor.waitForEvent(1000); + + assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN) + " but got " + + stoppedEvent.getFrame().getFunction() + ":" + + Integer.toString(stoppedEvent.getFrame().getLine()), + stoppedEvent.getFrame().getFunction().equals("main") && + stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); + } + + /** + * Repeat the test testNoStopAtMainWithReverse, but after a restart. + * TODO: remove ignore when parent test is fixed + */ + @Test + @Ignore + public void testNoStopAtMainWithReverseRestart() throws Throwable { + assumeGdbVersionAtLeast("7.2"); + fRestart = true; + testNoStopAtMainWithReverse(); + } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java index 0e5bd4bc78c..0131d7cc277 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java @@ -208,13 +208,7 @@ public class MIBreakpointsTest extends BaseParametrizedTestCase { // cleanup cannot assume sane state since it runs even test is failed or skipped if (fSession != null) { // Clear the references (not strictly necessary) - Runnable runnable = new Runnable() { - @Override - public void run() { - fRunControl.getSession().removeServiceEventListener(MIBreakpointsTest.this); - } - }; - fSession.getExecutor().submit(runnable).get(); + fSession.getExecutor().submit(()->fRunControl.getSession().removeServiceEventListener(MIBreakpointsTest.this)).get(); } fBreakpointService = null; fRunControl = null; diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIDisassemblyTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIDisassemblyTest.java index 5971e1747d9..4c75271c19f 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIDisassemblyTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIDisassemblyTest.java @@ -35,8 +35,7 @@ import org.eclipse.cdt.dsf.mi.service.MIDisassembly; import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.eclipse.cdt.utils.Addr64; @@ -44,6 +43,7 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /* * This is the Disassembly Service test suite. @@ -58,8 +58,8 @@ import org.junit.runner.RunWith; * Refer to the JUnit4 documentation for an explanation of the annotations. */ -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class MIDisassemblyTest extends BaseParametrizedTestCase { private static final String EXEC_NAME = "MemoryTestApp.exe"; private static final String SOURCE_NAME = "MemoryTestApp.cc"; private static final int LINE_NUMBER = 35; @@ -119,8 +119,10 @@ public class MIDisassemblyTest extends BaseTestCase { fExpressionService = null; fDisassembly = null; - fServicesTracker.dispose(); - fServicesTracker = null; + if (fServicesTracker != null) { + fServicesTracker.dispose(); + fServicesTracker = null; + } } // ======================================================================== diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIExpressionsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIExpressionsTest.java index e3bea65c082..4a2df47004f 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIExpressionsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIExpressionsTest.java @@ -52,8 +52,7 @@ import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; @@ -64,9 +63,10 @@ import org.eclipse.core.runtime.Status; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class MIExpressionsTest extends BaseParametrizedTestCase { private static final String EXEC_NAME = "ExpressionTestApp.exe"; private DsfSession fSession; @@ -110,16 +110,13 @@ public class MIExpressionsTest extends BaseTestCase { @Override public void doAfterTest() throws Exception { super.doAfterTest(); - - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(MIExpressionsTest.this); - } - }; - fSession.getExecutor().submit(runnable).get(); - fExpService = null; - fServicesTracker.dispose(); + if (fSession != null) { + fSession.getExecutor().submit(()->fSession.removeServiceEventListener(MIExpressionsTest.this)).get(); + } + fExpService = null; + if (fServicesTracker != null) { + fServicesTracker.dispose(); + } } // Handles ExpressionChangedEvent @@ -314,6 +311,7 @@ public class MIExpressionsTest extends BaseTestCase { */ @Test public void testChildren() throws Throwable { + assumeGdbVersionAtLeast("6.7"); // Get the children of some variables MIStoppedEvent stoppedEvent = SyncUtil.runToLocation("testChildren"); @@ -1831,6 +1829,9 @@ public class MIExpressionsTest extends BaseTestCase { */ @Test public void testDeleteChildren() throws Throwable { + assumeGdbVersionAtLeast("6.7"); + assumeGdbVersionLowerThen("7.3"); + SyncUtil.runToLocation("testDeleteChildren"); MIStoppedEvent stoppedEvent = SyncUtil.step(1, StepType.STEP_OVER); final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); @@ -2885,6 +2886,7 @@ public class MIExpressionsTest extends BaseTestCase { */ @Test public void testCanWriteLValue() throws Throwable { + assumeGdbVersionAtLeast("6.8"); MIStoppedEvent stoppedEvent = SyncUtil.runToLocation("testCanWrite"); // Re-use test final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); @@ -3461,6 +3463,8 @@ public class MIExpressionsTest extends BaseTestCase { */ @Test public void testRTTI() throws Throwable { + assumeGdbVersionNot("6.7"); // crashing + assumeGdbVersionLowerThen("7.5"); SyncUtil.runToLocation("testRTTI"); MIStoppedEvent stoppedEvent = SyncUtil.step(3, StepType.STEP_OVER); IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); @@ -4257,4 +4261,198 @@ public class MIExpressionsTest extends BaseTestCase { assertEquals(expectedType, type); return type; } + + // Slight change in GDB output to fix a bug, so we must change the test a + // little + // Bug 320277 + @Test + public void testDeleteChildren_7_3() throws Throwable { + assumeGdbVersionAtLeast("7.3"); + SyncUtil.runToLocation("testDeleteChildren"); + MIStoppedEvent stoppedEvent = SyncUtil.step(1, StepType.STEP_OVER); + final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); + + final AsyncCompletionWaitor wait = new AsyncCompletionWaitor(); + + fExpService.getExecutor().submit(new Runnable() { + @Override + public void run() { + + // First create the var object and all its children + IExpressionDMContext parentDmc = fExpService.createExpression(frameDmc, "f"); + + fExpService.getSubExpressions(parentDmc, + new DataRequestMonitor(fExpService.getExecutor(), null) { + @Override + protected void handleCompleted() { + if (!isSuccess()) { + wait.waitFinished(getStatus()); + } else { + if (getData().length != 5) { + wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, + "Failed getting children; expecting 5 got " + getData().length, null)); + } else { + String childStr = "((class bar) f)"; + if (!getData()[0].getExpression().equals(childStr)) { + wait.waitFinished(new Status( + IStatus.ERROR, TestsPlugin.PLUGIN_ID, "Got child " + + getData()[0].getExpression() + " instead of " + childStr, + null)); + } else { + // Now list the children of the + // first element + fExpService.getSubExpressions(getData()[0], + new DataRequestMonitor( + fExpService.getExecutor(), null) { + @Override + protected void handleCompleted() { + if (!isSuccess()) { + wait.waitFinished(getStatus()); + } else { + if (getData().length != 2) { + wait.waitFinished(new Status(IStatus.ERROR, + TestsPlugin.PLUGIN_ID, + "Failed getting children; expecting 2 got " + + getData().length, + null)); + } else { + String childStr = "((((class bar) f)).d)"; + if (!getData()[0].getExpression() + .equals(childStr)) { + wait.waitFinished(new Status(IStatus.ERROR, + TestsPlugin.PLUGIN_ID, + "Got child " + + getData()[0].getExpression() + + " instead of " + childStr, + null)); + } else { + wait.setReturnInfo(getData()[0]); + wait.waitFinished(); + } + } + } + } + }); + } + } + } + } + }); + } + }); + + wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + assertTrue(wait.getMessage(), wait.isOK()); + final IExpressionDMContext deletedChildDmc = (IExpressionDMContext) wait.getReturnInfo(); + + wait.waitReset(); + + fExpService.getExecutor().submit(new Runnable() { + @Override + public void run() { + + // Now create more than 1000 expressions to trigger the deletion + // of the children + // that were created above + for (int i = 0; i < 1100; i++) { + IExpressionDMContext dmc = fExpService.createExpression(frameDmc, "a[" + i + "]"); + + wait.increment(); + fExpService.getExpressionData(dmc, + new DataRequestMonitor(fExpService.getExecutor(), null) { + @Override + protected void handleCompleted() { + if (!isSuccess()) { + wait.waitFinished(getStatus()); + } else { + wait.waitFinished(); + } + } + }); + } + } + }); + + wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + assertTrue(wait.getMessage(), wait.isOK()); + wait.waitReset(); + + fExpService.getExecutor().submit(new Runnable() { + @Override + public void run() { + + // Evaluate the expression of a child that we know is deleted to + // make sure + // the expression service can handle that + fExpService.getExpressionData(deletedChildDmc, + new DataRequestMonitor(fExpService.getExecutor(), null) { + @Override + protected void handleCompleted() { + if (!isSuccess()) { + wait.waitFinished(getStatus()); + } else { + wait.waitFinished(); + } + } + }); + } + }); + + wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + assertTrue(wait.getMessage(), wait.isOK()); + wait.waitReset(); + + } + + /** + * This test verifies that there is proper RTTI support starting with GDB + * 7.5. + */ + @Test + public void testRTTI_7_5() throws Throwable { + assumeGdbVersionAtLeast("7.5"); + SyncUtil.runToLocation("testRTTI"); + MIStoppedEvent stoppedEvent = SyncUtil.step(3, StepType.STEP_OVER); + IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); + + // The expression we will follow as it changes types: derived.ptr + IExpressionDMContext exprDmc = SyncUtil.createExpression(frameDmc, "derived.ptr"); + + // Now, the expression should be type VirtualBase + getExpressionType(exprDmc, "VirtualBase *"); + assertChildrenCount(exprDmc, 2); + // get all children + String[] expectedValues = new String[2]; + expectedValues[0] = "a"; + expectedValues[1] = "b"; + getChildren(exprDmc, expectedValues); + + // Make the type of our expression change + SyncUtil.step(1, StepType.STEP_OVER); + // Now, the expression should be type Derived + getExpressionType(exprDmc, "Derived *"); + assertChildrenCount(exprDmc, 5); + // get all children + expectedValues = new String[5]; + expectedValues[0] = "VirtualBase"; + expectedValues[1] = "c"; + expectedValues[2] = "ptr"; + expectedValues[3] = "d"; + expectedValues[4] = "e"; + getChildren(exprDmc, expectedValues); + + // Make the type of our expression change + SyncUtil.step(1, StepType.STEP_OVER); + // Now, the expression should be type OtherDerived + getExpressionType(exprDmc, "OtherDerived *"); + assertChildrenCount(exprDmc, 4); + // get all children + expectedValues = new String[4]; + expectedValues[0] = "VirtualBase"; + expectedValues[1] = "d"; + expectedValues[2] = "c"; + expectedValues[3] = "f"; + getChildren(exprDmc, expectedValues); + } + } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java index 308d9de360d..1140295ab73 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java @@ -41,8 +41,7 @@ import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.MemoryByteBuffer; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; @@ -53,22 +52,23 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /* * This is the Memory Service test suite. - * + * * It is meant to be a regression suite to be executed automatically against * the DSF nightly builds. - * + * * It is also meant to be augmented with a proper test case(s) every time a * feature is added or in the event (unlikely :-) that a bug is found in the * Memory Service. - * + * * Refer to the JUnit4 documentation for an explanation of the annotations. */ -@RunWith(BackgroundRunner.class) -public class MIMemoryTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class MIMemoryTest extends BaseParametrizedTestCase { private static final String EXEC_NAME = "MemoryTestApp.exe"; private DsfSession fSession; @@ -98,7 +98,7 @@ public class MIMemoryTest extends BaseTestCase { @Override public void doBeforeTest() throws Exception { super.doBeforeTest(); - + fSession = getGDBLaunch().getSession(); fMemoryDmc = (IMemoryDMContext)SyncUtil.getContainerContext(); assert(fMemoryDmc != null); @@ -141,21 +141,15 @@ public class MIMemoryTest extends BaseTestCase { @Override public void doAfterTest() throws Exception { super.doAfterTest(); - // Clear the references (not strictly necessary) - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(MIMemoryTest.this); - } - }; - fSession.getExecutor().submit(runnable).get(); - - fBaseAddress = null; + if (fSession != null) + fSession.getExecutor().submit(() -> fSession.removeServiceEventListener(MIMemoryTest.this)).get(); + fBaseAddress = null; fExpressionService = null; fMemoryService = null; fRunControl = null; - fServicesTracker.dispose(); + if (fServicesTracker != null) + fServicesTracker.dispose(); fServicesTracker = null; clearEventCounters(); } @@ -169,7 +163,7 @@ public class MIMemoryTest extends BaseTestCase { * ------------------------------------------------------------------------ * Processes MemoryChangedEvents. * First checks if the memory block base address was set so the individual - * test can control if it wants to verify the event(s). + * test can control if it wants to verify the event(s). * ------------------------------------------------------------------------ * @param e The MemoryChangedEvent * ------------------------------------------------------------------------ @@ -812,7 +806,7 @@ public class MIMemoryTest extends BaseTestCase { } // Write an initialized memory block - ByteBuffer buffer = ByteBuffer.allocate(count * fWordSize); + ByteBuffer buffer = ByteBuffer.allocate(count * fWordSize); for (int i = 0; i < count; i++) { buffer.put(valueToBytes(i)); } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java index 5f66226affc..98c32b3b2ee 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java @@ -179,7 +179,7 @@ public class MIRegistersTest extends BaseParametrizedTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); fRegService = null; } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTargetAvailableTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTargetAvailableTest.java index 800eafa59aa..6c4b0781665 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTargetAvailableTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTargetAvailableTest.java @@ -32,21 +32,21 @@ import org.eclipse.cdt.dsf.mi.service.IMIRunControl; import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakInsertInfo; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * Tests MIRunControl class for for the execWhileTargetAvailable() method. */ -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class MIRunControlTargetAvailableTest extends BaseParametrizedTestCase { private static final String TIMEOUT_MESSAGE = "Timeout"; @@ -89,7 +89,7 @@ public class MIRunControlTargetAvailableTest extends BaseTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); } @Override diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java index 836121bad39..e282455078d 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java @@ -50,8 +50,7 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; @@ -60,13 +59,14 @@ import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * Tests MIRunControl class for Multi-threaded application. */ -@RunWith(BackgroundRunner.class) -public class MIRunControlTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class MIRunControlTest extends BaseParametrizedTestCase { /** * The cygwin runtime/emulation spawns a thread, so even the most basic @@ -131,7 +131,7 @@ public class MIRunControlTest extends BaseTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); } @Override @@ -363,7 +363,7 @@ public class MIRunControlTest extends BaseTestCase { /* * getModelData should return StateChangeReason. */ - Assert.assertEquals("Unexpected state change reason.", getExpectedMainThreadStopReason(), data.getStateChangeReason()); + Assert.assertEquals("Unexpected state change reason.", StateChangeReason.BREAKPOINT, data.getStateChangeReason()); } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/OperationsWhileTargetIsRunningTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/OperationsWhileTargetIsRunningTest.java index e3bf2bc4274..a0cd0f431ac 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/OperationsWhileTargetIsRunningTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/OperationsWhileTargetIsRunningTest.java @@ -32,8 +32,7 @@ import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; @@ -44,6 +43,7 @@ import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; import org.osgi.service.prefs.Preferences; @@ -51,8 +51,8 @@ import org.osgi.service.prefs.Preferences; * Tests that we can perform different operations while the target * is running. */ -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class OperationsWhileTargetIsRunningTest extends BaseParametrizedTestCase { private static final String TIMEOUT_MESSAGE = "Timeout"; @@ -103,7 +103,7 @@ public class OperationsWhileTargetIsRunningTest extends BaseTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); // Restore the different preferences we might have changed IEclipsePreferences node = InstanceScope.INSTANCE.getNode( GdbPlugin.PLUGIN_ID ); diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/PostMortemCoreTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/PostMortemCoreTest.java index 5a001954abc..c97ea2b5033 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/PostMortemCoreTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/PostMortemCoreTest.java @@ -37,8 +37,7 @@ import org.eclipse.cdt.dsf.mi.service.MIExpressions; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; import org.eclipse.cdt.utils.Addr64; @@ -53,9 +52,10 @@ import org.eclipse.debug.core.model.MemoryByte; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class PostMortemCoreTest extends BaseParametrizedTestCase { private static final String EXEC_NAME = "ExpressionTestApp.exe"; private static final String INVALID_CORE_NAME = "MultiThread.exe"; private static final String CORE_NAME = "core"; @@ -126,13 +126,7 @@ public class PostMortemCoreTest extends BaseTestCase { super.doAfterTest(); if (fSession != null) { - Runnable runnable = new Runnable() { - @Override - public void run() { - fSession.removeServiceEventListener(PostMortemCoreTest.this); - } - }; - fSession.getExecutor().submit(runnable).get(); + fSession.getExecutor().submit(()->fSession.removeServiceEventListener(PostMortemCoreTest.this)).get(); } fExpService = null; diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SourceLookupTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SourceLookupTest.java index 479efde8b64..1a0a0a1ea99 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SourceLookupTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SourceLookupTest.java @@ -47,6 +47,7 @@ import org.eclipse.cdt.dsf.datamodel.IDMContext; import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext; import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData; import org.eclipse.cdt.dsf.debug.sourcelookup.DsfSourceLookupDirector; +import org.eclipse.cdt.dsf.gdb.launching.LaunchUtils; import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl; import org.eclipse.cdt.dsf.mi.service.command.CommandFactory; import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; @@ -54,12 +55,10 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIMixedInstruction; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.SourceLookupTest_6_6; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.SourceLookupTest_7_5; import org.eclipse.core.resources.IMarkerDelta; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IStorage; @@ -83,15 +82,16 @@ import org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * Tests that interaction with source lookups works as expected. - * + * * All of these tests use one of SourceLookup*.exe that was built from a file * that was "moved" since build time. At build time the SourceLookup.cc file was * located in the {@link #BUILD_PATH} directory, but it is now located in the * {@link BaseTestCase#SOURCE_PATH} directory. - * + * * The wild card in SourceLookup*.exe can be one of the following to cover the * different effective types of source lookups that need to be done depending on * how the program was compiled. Each of these options produces different debug @@ -110,16 +110,16 @@ import org.junit.runner.RunWith; * * In addition, there can also be a Dwarf2 in the name. That means it is * designed to run with GDB <= 7.4, see comment in Makefile for OLDDWARFFLAGS. - * + * * The result of the variations on compilation arguments means that some of the * tests are parameterised. - * + * * Some of the CDT source lookup features require newer versions of GDB than * others, therefore the relevant tests are ignored as needed in the subclasses * of {@link SourceLookupTest}. */ -@RunWith(BackgroundRunner.class) -public class SourceLookupTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class SourceLookupTest extends BaseParametrizedTestCase { protected static final String BUILD_PATH = "data/launch/build/"; protected static final String BUILD2_PATH = "data/launch/build2/"; protected static final String SOURCE_NAME = "SourceLookup.cc"; //$NON-NLS-1$ @@ -145,11 +145,22 @@ public class SourceLookupTest extends BaseTestCase { * {@link SourceLookupTest_7_5#setExeNames()} which restores them. */ protected void setExeNames() { - EXEC_AC_NAME = "SourceLookupAC.exe"; //$NON-NLS-1$ - EXEC_AN_NAME = "SourceLookupAN.exe"; //$NON-NLS-1$ - EXEC_RC_NAME = "SourceLookupRC.exe"; //$NON-NLS-1$ - EXEC_RN_NAME = "SourceLookupRN.exe"; //$NON-NLS-1$ - EXEC_NAME = "SourceLookup.exe"; //$NON-NLS-1$ + String gdbVersion = getGdbVersion(); + // has to be strictly lower + boolean isLower = LaunchUtils.compareVersions("7.4", gdbVersion) > 0; + if (isLower) { + EXEC_AC_NAME = "SourceLookupDwarf2AC.exe"; //$NON-NLS-1$ + EXEC_AN_NAME = "SourceLookupDwarf2AN.exe"; //$NON-NLS-1$ + EXEC_RC_NAME = "SourceLookupDwarf2RC.exe"; //$NON-NLS-1$ + EXEC_RN_NAME = "SourceLookupDwarf2RN.exe"; //$NON-NLS-1$ + EXEC_NAME = "SourceLookupDwarf2.exe"; //$NON-NLS-1$ + } else { + EXEC_AC_NAME = "SourceLookupAC.exe"; //$NON-NLS-1$ + EXEC_AN_NAME = "SourceLookupAN.exe"; //$NON-NLS-1$ + EXEC_RC_NAME = "SourceLookupRC.exe"; //$NON-NLS-1$ + EXEC_RN_NAME = "SourceLookupRN.exe"; //$NON-NLS-1$ + EXEC_NAME = "SourceLookup.exe"; //$NON-NLS-1$ + } } protected static final String SOURCE_ABSPATH = new File(SOURCE_PATH).getAbsolutePath(); @@ -403,10 +414,10 @@ public class SourceLookupTest extends BaseTestCase { /** * Mapping test common. - * + * * If backend is used for mapping then every layer should be able to find * source. - * + * * If backned is not used for mapping then only once the source lookup * director gets involved should the source be found as GDB will not know * how to find it on its own. @@ -456,6 +467,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingAC() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMapping(EXEC_AC_NAME, false); } @@ -474,6 +486,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingAN() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMapping(EXEC_AN_NAME, false); } @@ -493,6 +506,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingRC() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMapping(EXEC_RC_NAME, false); } @@ -511,6 +525,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingRN() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMapping(EXEC_RN_NAME, false); } @@ -530,6 +545,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingBreakpointsAC() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMappingBreakpoints(EXEC_AC_NAME, false); } @@ -568,6 +584,7 @@ public class SourceLookupTest extends BaseTestCase { */ @Test public void sourceMappingBreakpointsRC() throws Throwable { + assumeGdbVersionAtLeast("7.6"); sourceMappingBreakpoints(EXEC_RC_NAME, false); } @@ -683,7 +700,7 @@ public class SourceLookupTest extends BaseTestCase { * Test that if the user changes the source mappings in the middle of a * debug session (e.g. with CSourceNotFoundEditor) that the lookups are * updated. - * + * * This version is for a new source mapping where there wasn't one * previously. */ @@ -724,12 +741,13 @@ public class SourceLookupTest extends BaseTestCase { * Test with default source locators and a {@link DirectorySourceContainer} * for SOURCE_ABSPATH that GDB does not locate the file, but the source * lookup director and the source lookup service do find the file. - * + * * This test does not work with modern GDBs because the path passed into * DirectorySourceContainer is an absolute path. See versioned test suites. */ @Test public void directorySource() throws Throwable { + assumeGdbVersionLowerThen("7.6"); DirectorySourceContainer container = new DirectorySourceContainer(new Path(SOURCE_ABSPATH), false); setSourceContainer(container); doLaunch(EXEC_PATH + EXEC_RC_NAME); @@ -739,7 +757,7 @@ public class SourceLookupTest extends BaseTestCase { /** * Create an IBinary with the minimum necessary for use in * org.eclipse.cdt.debug.internal.core.srcfinder.CSourceFinder. - * + * * A mock is used to avoid having to set up the significant of glue * necessary to create a real IBinary. All that CSourceFinder needs is the * path to the file. @@ -808,7 +826,7 @@ public class SourceLookupTest extends BaseTestCase { /** * Test the CSourceFinder's use of source lookup when there is an active * launch. - * + * * In this case, the DSF specific director created as part of the launch * gets used. */ @@ -831,7 +849,7 @@ public class SourceLookupTest extends BaseTestCase { /** * Test the CSourceFinder's use of source lookup when there is a terminated * launch. - * + * * In this case, the DSF specific director created as part of the launch * gets used. */ @@ -856,7 +874,7 @@ public class SourceLookupTest extends BaseTestCase { /** * Test the CSourceFinder's use of source lookup when there is a not active * launch, but a launch configuration that can be used. - * + * * In this case, the c general director created as part of the launch gets * used. */ diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/StepIntoSelectionTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/StepIntoSelectionTest.java index a98b721312c..6fd0ba2c151 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/StepIntoSelectionTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/StepIntoSelectionTest.java @@ -32,22 +32,21 @@ import org.eclipse.cdt.dsf.mi.service.command.output.MIFrame; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.internal.core.model.FunctionDeclaration; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * Tests Non Stop GDB RunControl "Step into Selection feature" * */ @SuppressWarnings("restriction") -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest extends BaseTestCase { +@RunWith(Parameterized.class) +public class StepIntoSelectionTest extends BaseParametrizedTestCase { private DsfServicesTracker fServicesTracker; private DsfSession fSession; @@ -114,7 +113,7 @@ public class StepIntoSelectionTest extends BaseTestCase { public void doAfterTest() throws Exception { super.doAfterTest(); - fServicesTracker.dispose(); + if (fServicesTracker!=null) fServicesTracker.dispose(); } @Override @@ -456,9 +455,9 @@ public class StepIntoSelectionTest extends BaseTestCase { * reasons, resulting in two MIStoppedEvent in the step-into-selection machinery. Later * gdbs generate a stopped event with only one reason, as they should. */ - @Ignore @Test public void atDoubleMethodStopAtBreakpointFunctionEntry() throws Throwable { + assumeGdbVersionAtLeast("7.4"); atDoubleMethodStopAtBreakpointCommon(FOO_LINE); } @@ -497,8 +496,8 @@ public class StepIntoSelectionTest extends BaseTestCase { * gdbs generate a stopped event with only one reason, as they should. */ @Test - @Ignore public void atDoubleMethodSkipBreakpointFunctionEntry() throws Throwable { + assumeGdbVersionAtLeast("7.4"); atDoubleMethodSkipBreakpointCommon(FOO_LINE); } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdb.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdb.java index fa39848cae1..3575445bcbe 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdb.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdb.java @@ -11,6 +11,11 @@ package org.eclipse.cdt.tests.dsf.gdb.tests; import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; +import org.eclipse.cdt.tests.dsf.gdb.tests.nonstop.GDBMultiNonStopRunControlTest; +import org.eclipse.cdt.tests.dsf.gdb.tests.nonstop.MIExpressionsNonStopTest; +import org.eclipse.cdt.tests.dsf.gdb.tests.nonstop.MIRunControlNonStopTargetAvailableTest; +import org.eclipse.cdt.tests.dsf.gdb.tests.nonstop.OperationsWhileTargetIsRunningNonStopTest; +import org.eclipse.cdt.tests.dsf.gdb.tests.nonstop.StepIntoSelectionNonStopTest; import org.junit.BeforeClass; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -21,18 +26,41 @@ import org.junit.runners.Suite; * If you running this from IDE use java var to control version like this -Dcdt.tests.dsf.gdb.versions=gdb.7.7,gdbserver.7.7 * If you don't it will run default gdb (without version postfix) for new tests. It will run 7.11 for all non-converted tests. * - * If you adding a new test class do not use gdb version naming. + * If you adding a new test class do not use gdb version naming. * Use flat version extending BaseParametrizedTestCase see {@link MIBreakpointsTest} */ @RunWith(Suite.class) @Suite.SuiteClasses({ - // new style tests - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIRegistersTest.class, - /* Add your test class here */ + // new style tests + MIBreakpointsTest.class, + MICatchpointsTest.class, + MIRegistersTest.class, + MIExpressionsTest.class, + LaunchConfigurationAndRestartTest.class, + SourceLookupTest.class, + StepIntoSelectionTest.class, + OperationsWhileTargetIsRunningTest.class, + MIRunControlTest.class, + MIRunControlTargetAvailableTest.class, + GDBPatternMatchingExpressionsTest.class, + GDBMultiNonStopRunControlTest.class, + GDBConsoleBreakpointsTest.class, + MIRunControlNonStopTargetAvailableTest.class, + MIExpressionsNonStopTest.class, + OperationsWhileTargetIsRunningNonStopTest.class, + StepIntoSelectionNonStopTest.class, + GDBRemoteTracepointsTest.class, + TraceFileTest.class, + GDBConsoleSynchronizingTest.class, + MIMemoryTest.class, + MIDisassemblyTest.class, + GDBProcessesTest.class, + PostMortemCoreTest.class, + CommandTimeoutTest.class, + /* Add your test class here */ }) public class SuiteGdb { + @BeforeClass public static void before() { // If we running this suite we have to clean up global options since diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdbVersioned.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdbVersioned.java deleted file mode 100644 index fbe18a7d5e8..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/SuiteGdbVersioned.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 QNX Software System and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Elena Laskavaia (QNX Software System) - initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.CommandTimeoutTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.GDBConsoleBreakpointsTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.GDBConsoleSynchronizingTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.GDBMultiNonStopRunControlTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.GDBPatternMatchingExpressionsTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.GDBProcessesTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.LaunchConfigurationAndRestartTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIDisassemblyTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIExpressionsNonStopTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIExpressionsTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIMemoryTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIRunControlNonStopTargetAvailableTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIRunControlTargetAvailableTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.MIRunControlTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.OperationsWhileTargetIsRunningNonStopTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.OperationsWhileTargetIsRunningTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.PostMortemCoreTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.SourceLookupTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.StepIntoSelectionNonStopTest_7_11; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11.StepIntoSelectionTest_7_11; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This suite is for tests to be run with GDB. - * - * Do not change this unless you flattening the tests, these are old style test not converted yet - */ -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // temporary we still use hardcoded gdb version name, we will slowly flatten them - MIRunControlTest_7_11.class, - MIRunControlTargetAvailableTest_7_11.class, - MIRunControlNonStopTargetAvailableTest_7_11.class, - MIExpressionsTest_7_11.class, - MIExpressionsNonStopTest_7_11.class, - GDBPatternMatchingExpressionsTest_7_11.class, - MIMemoryTest_7_11.class, - MIDisassemblyTest_7_11.class, - GDBProcessesTest_7_11.class, - LaunchConfigurationAndRestartTest_7_11.class, - OperationsWhileTargetIsRunningTest_7_11.class, - OperationsWhileTargetIsRunningNonStopTest_7_11.class, - PostMortemCoreTest_7_11.class, - CommandTimeoutTest_7_11.class, - GDBMultiNonStopRunControlTest_7_11.class, - GDBConsoleBreakpointsTest_7_11.class, - GDBConsoleSynchronizingTest_7_11.class, - StepIntoSelectionTest_7_11.class, - StepIntoSelectionNonStopTest_7_11.class, - SourceLookupTest_7_11.class, - /* DO NOT ADD MORE TESTS HERE: User SuiteGdb for new style tests */ -}) -public class SuiteGdbVersioned { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/TraceFileTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/TraceFileTest.java similarity index 93% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/TraceFileTest_7_4.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/TraceFileTest.java index 2da2f554364..e0104f8136c 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/TraceFileTest_7_4.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/TraceFileTest.java @@ -10,7 +10,7 @@ * Marc Khouzam (Ericsson) - Run tests in alphabetical order since they are dependent on each other. *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; +package org.eclipse.cdt.tests.dsf.gdb.tests; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; @@ -47,10 +47,9 @@ import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; import org.eclipse.core.runtime.Path; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointManager; @@ -59,10 +58,13 @@ import org.junit.After; import org.junit.AfterClass; import org.junit.FixMethodOrder; import org.junit.Test; +import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; +import org.junit.runners.Parameterized; @FixMethodOrder(MethodSorters.NAME_ASCENDING) -public class TraceFileTest_7_4 extends BaseTestCase { +@RunWith(Parameterized.class) +public class TraceFileTest extends BaseParametrizedTestCase { private final static String SOURCE_NAME = "TracepointTestApp.cc"; private final static String EXEC_NAME = "TracepointTestApp.exe"; @@ -81,15 +83,12 @@ public class TraceFileTest_7_4 extends BaseTestCase { private IBreakpointsTargetDMContext fBreakpointsDmc; private ITraceTargetDMContext fTraceTargetDmc; - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } @Override public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.4"); removeTeminatedLaunchesBeforeTest(); - // Suppress settings of the launch attributes and launching. + // Suppress settings of the launch attributes and launching. // Each test sets its own launch attributes } @@ -104,7 +103,7 @@ public class TraceFileTest_7_4 extends BaseTestCase { System.out.println("ERROR: Failed to delete all breakpoints"); } } - + @Override @After public void doAfterTest() throws Exception { @@ -142,30 +141,30 @@ public class TraceFileTest_7_4 extends BaseTestCase { MIBreakpointDMContext bptDMC = setBreakpointAtEndLine(); startTracing(); MIStoppedEvent stoppedEvent = SyncUtil.resumeUntilStopped(); - assertTrue(stoppedEvent instanceof MIBreakpointHitEvent + assertTrue(stoppedEvent instanceof MIBreakpointHitEvent && ((MIBreakpointHitEvent)stoppedEvent).getNumber() == bptDMC.getReference()); stopTracing(); saveTraceData(); } /** - * This test removes all existing tracepoint actions and tracepoints - * and verifies that corresponding platform tracepoints with the proper + * This test removes all existing tracepoint actions and tracepoints + * and verifies that corresponding platform tracepoints with the proper * actions are created. */ @Test public void b_testTraceFile() throws Throwable { // Make sure that there are no tracepoint actions and no platform breakpoints in the workspace. deleteActionsAndBreakpoints(); - + startTraceFileSession(); // Verify that required tracepoints and new tracepoint actions are created. checkActionsAndTracepoints(); } /** - * This test verifies that the tracepoint actions and platform tracepoints - * created by 'testTraceFile()' are associated with the corresponding target + * This test verifies that the tracepoint actions and platform tracepoints + * created by 'testTraceFile()' are associated with the corresponding target * tracepoints and are not created a second time. */ @Test @@ -209,7 +208,7 @@ public class TraceFileTest_7_4 extends BaseTestCase { private static void deleteActionsAndBreakpoints() throws Throwable { TracepointActionManager tam = TracepointActionManager.getInstance(); IBreakpointManager bm = DebugPlugin.getDefault().getBreakpointManager(); - + // Delete all existing actions @SuppressWarnings( "unchecked" ) ArrayList actions = (ArrayList)tam.getActions().clone(); @@ -245,16 +244,16 @@ public class TraceFileTest_7_4 extends BaseTestCase { TracepointActionManager tam = TracepointActionManager.getInstance(); assertTrue(SOURCE_NAME.equals(new Path(tracepoint.getFileName()).lastSegment())); assertTrue(LINE_NUMBER_1 == tracepoint.getLineNumber() || LINE_NUMBER_2 == tracepoint.getLineNumber()); - String[] actionNames = + String[] actionNames = ((String)tracepoint.getMarker().getAttribute(BreakpointActionManager.BREAKPOINT_ACTION_ATTRIBUTE)).split(TracepointActionManager.TRACEPOINT_ACTION_DELIMITER); - for (String name : actionNames) { + for (String name : actionNames) { ITracepointAction a = tam.findAction(name); assertNotNull(a); if (a instanceof EvaluateAction) { assertTrue(TEVAL_STRING.equals(((EvaluateAction)a).getEvalString())); } if (a instanceof CollectAction) { - assertTrue(COLLECT_STRING1.equals(((CollectAction)a).getCollectString()) + assertTrue(COLLECT_STRING1.equals(((CollectAction)a).getCollectString()) || COLLECT_STRING2.equals(((CollectAction)a).getCollectString())); } } @@ -262,17 +261,17 @@ public class TraceFileTest_7_4 extends BaseTestCase { private void startRemoteSession() throws Throwable { // Set launch attributes - super.setLaunchAttributes(); + super.setLaunchAttributes(); setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME); // GDB tracepoints are only supported on a remote target (e.g., using gdbserver) setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, - IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE); + IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE); setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_TRACEPOINT_MODE, IGDBLaunchConfigurationConstants.DEBUGGER_TRACEPOINT_MODE_DEFAULT); - + // Start the session doLaunch(); - + // Initialize fSession = getGDBLaunch().getSession(); Runnable runnable = new Runnable() { @@ -294,18 +293,18 @@ public class TraceFileTest_7_4 extends BaseTestCase { private void startTracing() throws Throwable { final AsyncCompletionWaitor wait = new AsyncCompletionWaitor(); - fSession.getExecutor().submit(new Runnable() { + fSession.getExecutor().submit(new Runnable() { @Override public void run() { fTraceService.getTraceStatus( - fTraceTargetDmc, + fTraceTargetDmc, new DataRequestMonitor(fSession.getExecutor(), null) { @Override @ConfinedToDsfExecutor("fExecutor") protected void handleCompleted() { if (isSuccess() && getData().isTracingSupported()) { - fTraceService.startTracing( - fTraceTargetDmc, + fTraceService.startTracing( + fTraceTargetDmc, new RequestMonitor(fSession.getExecutor(), null) { @Override @ConfinedToDsfExecutor("fExecutor") @@ -320,18 +319,18 @@ public class TraceFileTest_7_4 extends BaseTestCase { } }); } - }); + }); wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); assertTrue(wait.getMessage(), wait.isOK()); } private void stopTracing() throws Throwable { final AsyncCompletionWaitor wait = new AsyncCompletionWaitor(); - fSession.getExecutor().submit(new Runnable() { + fSession.getExecutor().submit(new Runnable() { @Override public void run() { - fTraceService.stopTracing( - fTraceTargetDmc, + fTraceService.stopTracing( + fTraceTargetDmc, new RequestMonitor(fSession.getExecutor(), null) { @Override @ConfinedToDsfExecutor("fExecutor") @@ -340,7 +339,7 @@ public class TraceFileTest_7_4 extends BaseTestCase { } }); } - }); + }); wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); assertTrue(wait.getMessage(), wait.isOK()); } @@ -357,18 +356,18 @@ public class TraceFileTest_7_4 extends BaseTestCase { private void setTracepoints() throws Throwable { TracepointActionManager tam = TracepointActionManager.getInstance(); - + CollectAction collectAction1 = new CollectAction(); collectAction1.setCollectString(COLLECT_STRING1); collectAction1.setName(String.format("Collect %s", COLLECT_STRING1)); tam.addAction(collectAction1); - - + + CollectAction collectAction2 = new CollectAction(); collectAction2.setCollectString(COLLECT_STRING2); collectAction2.setName(String.format("Collect %s", COLLECT_STRING2)); tam.addAction(collectAction2); - + EvaluateAction evalAction = new EvaluateAction(); evalAction.setEvalString(TEVAL_STRING); evalAction.setName(String.format("Evaluate %s", TEVAL_STRING)); @@ -380,10 +379,10 @@ public class TraceFileTest_7_4 extends BaseTestCase { attributes.put(MIBreakpoints.LINE_NUMBER, LINE_NUMBER_1); attributes.put(MIBreakpoints.COMMANDS, evalAction.getName()); insertBreakpoint(fBreakpointsDmc, attributes); - + attributes.put(MIBreakpoints.LINE_NUMBER, LINE_NUMBER_2); - attributes.put(MIBreakpoints.COMMANDS, - String.format("%s%s%s", collectAction1.getName(), + attributes.put(MIBreakpoints.COMMANDS, + String.format("%s%s%s", collectAction1.getName(), TracepointActionManager.TRACEPOINT_ACTION_DELIMITER, collectAction2.getName())); insertBreakpoint(fBreakpointsDmc, attributes); } @@ -422,9 +421,9 @@ public class TraceFileTest_7_4 extends BaseTestCase { @Override public void run() { fTraceService.saveTraceData( - fTraceTargetDmc, - traceFile.getAbsolutePath(), - false, + fTraceTargetDmc, + traceFile.getAbsolutePath(), + false, new RequestMonitor(fSession.getExecutor(), null) { @Override protected void handleCompleted() { diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBMultiNonStopRunControlTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/GDBMultiNonStopRunControlTest.java similarity index 86% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBMultiNonStopRunControlTest_7_0.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/GDBMultiNonStopRunControlTest.java index 5439979bc52..63342a495bc 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBMultiNonStopRunControlTest_7_0.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/GDBMultiNonStopRunControlTest.java @@ -4,16 +4,14 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Marc Khouzam (Ericsson) - Initial implementation of Test cases *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; +package org.eclipse.cdt.tests.dsf.gdb.tests.nonstop; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.junit.Assert.*; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -32,35 +30,29 @@ import org.eclipse.cdt.dsf.mi.service.command.events.MIRunningEvent; import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; +import org.eclipse.cdt.tests.dsf.gdb.framework.BaseParametrizedTestCase; import org.eclipse.cdt.tests.dsf.gdb.framework.Intermittent; import org.eclipse.cdt.tests.dsf.gdb.framework.IntermittentRule; import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; import org.junit.Assume; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** - * Tests IMultiRunControl class for Non-stop multi-threaded application. + * Tests IMultiRunControl class for Non-stop multi-threaded application. */ -@RunWith(BackgroundRunner.class) +@RunWith(Parameterized.class) @Intermittent -public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { +public class GDBMultiNonStopRunControlTest extends BaseParametrizedTestCase { public @Rule IntermittentRule irule = new IntermittentRule(); - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } - - private DsfServicesTracker fServicesTracker; + private DsfServicesTracker fServicesTracker; private IMultiRunControl fMultiRun; @@ -73,18 +65,19 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { * Name of the executable */ private static final String EXEC_NAME = "MultiThreadRunControl.exe"; - + @Override public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.0"); super.doBeforeTest(); - + final DsfSession session = getGDBLaunch().getSession(); - + Runnable runnable = new Runnable() { @Override public void run() { - fServicesTracker = - new DsfServicesTracker(TestsPlugin.getBundleContext(), + fServicesTracker = + new DsfServicesTracker(TestsPlugin.getBundleContext(), session.getId()); fMultiRun = fServicesTracker.getService(IMultiRunControl.class); } @@ -96,7 +89,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { protected void setLaunchAttributes() { super.setLaunchAttributes(); - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, + setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME); // Multi run control only makes sense for non-stop mode @@ -106,10 +99,10 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { @Override public void doAfterTest() throws Exception { super.doAfterTest(); - - fServicesTracker.dispose(); + + if (fServicesTracker!=null) fServicesTracker.dispose(); } - + private abstract class AsyncRunnable { public abstract void run(DataRequestMonitor drm); }; @@ -125,7 +118,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { runnable.run(rm); } }; - + V result = null; try { fMultiRun.getExecutor().execute(query); @@ -140,18 +133,18 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } catch (TimeoutException e) { fail(e.getMessage()); } - + if (expectExecutionException) { fail("Didn't get the expected execution exception"); } - + return result; } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the run-state of multiple threads ////////////////////////////////////////////////////////////////////// - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * with one thread which is stopped. @@ -160,18 +153,18 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { public void testStateOneThreadStopped() throws Throwable { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(threads, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(threads, drm); } @@ -179,14 +172,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to resume some, but cannot", result); // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(threads, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(threads, drm); } @@ -194,30 +187,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected to find all threads suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(threads, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(threads, type, drm); } @@ -226,21 +219,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); } - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * with one thread which is running. @@ -252,33 +245,33 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Resume the program to check thread while it is running SyncUtil.resumeAll(); - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(threads, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(threads, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(threads, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(threads, drm); } @@ -286,30 +279,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertFalse("expected to find no thread suspended but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertFalse("expected to find no thread suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(threads, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to not be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(threads, type, drm); } @@ -318,14 +311,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(threads, drm); } @@ -342,43 +335,43 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); Boolean result; // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(threads, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(threads, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(threads, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(threads, drm); } @@ -386,30 +379,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected to find all threads suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(threads, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but can't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(threads, type, drm); } @@ -418,14 +411,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(threads, drm); } @@ -446,43 +439,43 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(threads, drm); } }); assertFalse("expected to not be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(threads, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(threads, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(threads, drm); } @@ -490,30 +483,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertFalse("expected that not all threads are suspended but they are", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(threads, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(threads, type, drm); } @@ -522,21 +515,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); } - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * with two threads which are both running. @@ -550,46 +543,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(threads, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(threads, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(threads, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(threads, drm); } @@ -597,30 +590,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertFalse("expected that no threads are suspended but they are", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertFalse("expected to find no threads suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(threads, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(threads, type, drm); } @@ -629,25 +622,25 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(threads, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the resume operation on multiple threads ////////////////////////////////////////////////////////////////////// - + /** * Test resume of multiple contexts with one thread which is stopped. */ @@ -655,27 +648,27 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { public void testResumeOneThreadStopped() throws Throwable { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads, drm); } }); eventWaitor.waitForEvent(100); // Wait for confirmation thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); } - + /** * Test resume of multiple contexts with one thread which is running. */ @@ -688,7 +681,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { SyncUtil.resumeAll(); // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } @@ -696,14 +689,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected no threads to be suspended, but found some", result); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads, drm); } }); // Confirm that all threads are still running - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } @@ -721,46 +714,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads[0], drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation that one thread resumed - + // Also confirm that only one threads is running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertTrue("expected some threads to be suspended, but found none", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertFalse("expected not to find all threads suspended, but did", result); - + // Make sure no other running event arrives try { - eventWaitorRunning.waitForEvent(500); + eventWaitorRunning.waitForEvent(500); fail("Got an unexpected running event"); } catch (Exception e) { // Timeout expected. Success. @@ -776,21 +769,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads, drm); } @@ -798,9 +791,9 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { eventWaitorRunning.waitForEvent(100); // Wait for confirmation first thread resumed eventWaitorRunning.waitForEvent(100); // Wait for confirmation second thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } @@ -821,14 +814,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); @@ -836,22 +829,22 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads, drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation one thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no other running event arrives fail("Got an unexpected running event"); @@ -859,7 +852,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with two running threads. */ @@ -872,38 +865,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - + final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(threads, drm); } }); - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -911,11 +904,11 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the suspend operation on multiple threads ////////////////////////////////////////////////////////////////////// - + /** * Test suspend of multiple contexts with one thread which is stopped. */ @@ -923,23 +916,23 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { public void testSuspendOneThreadStopped() throws Throwable { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - + // No error should be thrown, the already suspended threads should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads, drm); } }); // Also confirm that all threads are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected all threads to be suspended, but they are not", result); } - + /** * Test suspend of multiple contexts with one thread which is running. */ @@ -952,7 +945,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { SyncUtil.resumeAll(); // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } @@ -962,16 +955,16 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads, drm); } }); eventWaitor.waitForEvent(100); // Thread should interrupt - + // Confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -987,26 +980,26 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the already suspended threads should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads, drm); } }); // Also confirm that all threads are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -1027,35 +1020,35 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the call should ignore the suspended threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads, drm); } }); eventWaitorStopped.waitForEvent(100); // Wait for confirmation one thread stopped - + // Also confirm that all threads are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); - assertTrue("expected all threads to be suspended, but they are not", result); + assertTrue("expected all threads to be suspended, but they are not", result); } - + /** * Test suspend of multiple contexts with two running threads. Only one * thread will be suspended. @@ -1069,43 +1062,43 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - + // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads[0], drm); } }); - + eventWaitor.waitForEvent(100); // confirm one thread was suspended - + // Also confirm that some but not all threads are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(threads, drm); } }); assertTrue("expected some threads to be suspended, but found none", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertFalse("expected that not all threads are suspended, but they are", result); - + try { eventWaitor.waitForEvent(500); // Make sure no other stopped event arrives fail("Got an unexpected stopped event"); @@ -1127,38 +1120,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - - runAsyncCall(new AsyncRunnable() { + + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(threads, drm); } }); - + eventWaitor.waitForEvent(100); // confirm one thread was suspended eventWaitor.waitForEvent(100); // confirm the other thread was suspended - + // Also confirm that all threads are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); - assertTrue("expected that all threads are suspended, but they are not", result); + assertTrue("expected that all threads are suspended, but they are not", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the step operation on multiple threads ////////////////////////////////////////////////////////////////////// @@ -1171,9 +1164,9 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { public void testStepNotImplemented() throws Throwable { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - + for (final IRunControl.StepType type : IRunControl.StepType.values()) { - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.step(threads, type, drm); } @@ -1181,32 +1174,32 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the run-state of the process. // This should be done with multi-process but we are not quite setup for it. ////////////////////////////////////////////////////////////////////// - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with one thread which is stopped. */ @Test - public void testStateProcessOneThreadStopped() throws Throwable { - final IContainerDMContext[] processes = + public void testStateProcessOneThreadStopped() throws Throwable { + final IContainerDMContext[] processes = new IContainerDMContext[] { SyncUtil.getContainerContext() }; - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(processes, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(processes, drm); } @@ -1214,14 +1207,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to resume some, but cannot", result); // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(processes, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(processes, drm); } @@ -1229,30 +1222,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertTrue("expected to find all processes suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(processes, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(processes, type, drm); } @@ -1261,59 +1254,59 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); } - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with one thread which is running. */ @Test public void testStateProcessOneThreadRunning() throws Throwable { - final IContainerDMContext[] processes = + final IContainerDMContext[] processes = new IContainerDMContext[] { SyncUtil.getContainerContext() }; // Resume the program to check thread while it is running SyncUtil.resumeAll(); - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(processes, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(processes, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(processes, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(processes, drm); } @@ -1321,30 +1314,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertFalse("expected to find no thread suspended but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertFalse("expected to find no thread suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(processes, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to not be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(processes, type, drm); } @@ -1353,14 +1346,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(processes, drm); } @@ -1377,43 +1370,43 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - - final IContainerDMContext[] processes = + + final IContainerDMContext[] processes = new IContainerDMContext[] { SyncUtil.getContainerContext() }; Boolean result; // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(processes, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(processes, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(processes, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(processes, drm); } @@ -1421,30 +1414,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertTrue("expected to find all threads suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(processes, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but can't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(processes, type, drm); } @@ -1453,14 +1446,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(processes, drm); } @@ -1481,43 +1474,43 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for second thread to stop - - final IContainerDMContext[] processes = + + final IContainerDMContext[] processes = new IContainerDMContext[] { SyncUtil.getContainerContext() }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(processes, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(processes, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(processes, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(processes, drm); } @@ -1525,30 +1518,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but can't", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertTrue("expected that all processes are suspended but they are not", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(processes, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(processes, type, drm); } @@ -1557,21 +1550,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); } - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with two threads which are both running. @@ -1585,46 +1578,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IContainerDMContext[] processes = + + final IContainerDMContext[] processes = new IContainerDMContext[] { SyncUtil.getContainerContext() }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(processes, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(processes, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(processes, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(processes, drm); } @@ -1632,30 +1625,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertFalse("expected that no threads are suspended but they are", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertFalse("expected to find no threads suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(processes, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(processes, type, drm); } @@ -1664,14 +1657,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(processes, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(processes, drm); } @@ -1684,31 +1677,31 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Because the thread is part of the process, it should be ignored, // and the results should be as if only the process was selected. ////////////////////////////////////////////////////////////////////// - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with one thread which is stopped. * We also select the thread. */ @Test - public void testStateProcessThreadOneThreadStopped() throws Throwable { + public void testStateProcessThreadOneThreadStopped() throws Throwable { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - final IExecutionDMContext[] execDmcs = + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0] }; - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } @@ -1716,14 +1709,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to resume some, but cannot", result); // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -1731,30 +1724,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected to find all processes suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -1763,21 +1756,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); } - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with one thread which is running. @@ -1788,38 +1781,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); - final IExecutionDMContext[] execDmcs = + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0] }; // Resume the program to check thread while it is running SyncUtil.resumeAll(); - + Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -1827,30 +1820,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertFalse("expected to find no thread suspended but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected to find no thread suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to not be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -1859,14 +1852,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -1884,46 +1877,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0] }; Boolean result; // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -1931,30 +1924,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected to find all threads suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but can't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -1963,14 +1956,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -1992,46 +1985,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2039,30 +2032,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected that all processes are suspended but they are not", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2071,14 +2064,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -2100,46 +2093,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(1) }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2147,30 +2140,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected that all processes are suspended but they are not", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2179,14 +2172,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -2208,49 +2201,49 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0] }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2258,30 +2251,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertFalse("expected that no threads are suspended but they are", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected to find no threads suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2290,27 +2283,27 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the run-state of the process and both threads. // Because the threads are part of the process, they should be ignored, // and the results should be as if only the process was selected. ////////////////////////////////////////////////////////////////////// - + /** * Test canResume*, canSuspend*, isSuspended*, canStep*, isStepping* * on the process with two threads which are both stopped. @@ -2321,46 +2314,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0], threads[1] }; Boolean result; // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertFalse("expected not to be able to suspend all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2368,30 +2361,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected not to be able to suspend some, but can", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected to find all threads suspended but didn't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some threads suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertTrue("expected to be able to step all, but can't", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2400,14 +2393,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no thread stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -2429,46 +2422,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0], threads[1] }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertTrue("expected to be able to resume all, but cannot", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertTrue("expected to be able to resume some, but cannot", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2476,30 +2469,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected that all processes are suspended but they are not", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertTrue("expected to find some processes suspended but didn't", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2508,14 +2501,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } @@ -2537,49 +2530,49 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 2); - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), threads[0], threads[1] }; Boolean result; - + // canResume calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeAll(execDmcs, drm); } }); assertFalse("expected not to be able to resume all, but can", result); - - result = runAsyncCall(new AsyncRunnable() { + + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canResumeSome(execDmcs, drm); } }); assertFalse("expected not to be able to resume some, but can", result); - + // canSuspend calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendAll(execDmcs, drm); } }); assertTrue("expected to be able to suspend all, but cannot", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canSuspendSome(execDmcs, drm); } @@ -2587,30 +2580,30 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected to be able to suspend some, but cannot", result); // isSuspended calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertFalse("expected that no threads are suspended but they are", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected to find no threads suspended but did", result); - + // canStep calls for (final IRunControl.StepType type : IRunControl.StepType.values()) { - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepAll(execDmcs, type, drm); } }, true /* Not implemented yet*/); // assertFalse("expected not to be able to step all, but can", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.canStepSome(execDmcs, type, drm); } @@ -2619,66 +2612,66 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { } // isStepping calls - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingAll(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSteppingSome(execDmcs, drm); } }, true /* Not implemented yet*/); // assertFalse("expected to find no process stepping but did", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the multi resume operation on processes ////////////////////////////////////////////////////////////////////// - + /** * Test resume of multiple contexts with one thread which is stopped. */ @Test public void testResumeProcessOneThreadStopped() throws Throwable { - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(processes, drm); } }); eventWaitor.waitForEvent(100); // Wait for confirmation process resumed - + // Also confirm that process is running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertFalse("expected no process to be suspended, but found some", result); } - + /** * Test resume of multiple contexts with one thread which is running. */ @Test public void testResumeProcessOneThreadRunning() throws Throwable { - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; // Resume the program to get thread running SyncUtil.resumeAll(); // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } @@ -2686,14 +2679,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertFalse("expected no process to be suspended, but found some", result); // No error should be thrown, the call should ignore running processes - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(processes, drm); } }); // Confirm that all threads are still running - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } @@ -2711,21 +2704,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(processes, drm); } @@ -2735,7 +2728,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { eventWaitorRunning.waitForEvent(100); // Wait for confirmation that second thread resumed // Also confirm that all processes are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } @@ -2756,37 +2749,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(processes, drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation one thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no other running event arrives fail("Got an unexpected running event"); @@ -2794,7 +2787,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with two running threads. */ @@ -2807,38 +2800,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; - + final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(processes, drm); } }); - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -2846,31 +2839,31 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the suspend operation on processes ////////////////////////////////////////////////////////////////////// - + /** * Test suspend of multiple contexts with one thread which is stopped. */ @Test public void testSuspendProcessOneThreadStopped() throws Throwable { - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); // No error should be thrown, the already suspended processes should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(processes, drm); } }); // Also confirm that all threads are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } @@ -2878,27 +2871,27 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected all processes to be suspended, but they are not", result); // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected all threads to be suspended, but they are not", result); } - + /** * Test suspend of multiple contexts with one thread which is running. */ @Test public void testSuspendProcessOneThreadRunning() throws Throwable { - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; // Resume the program to get thread running SyncUtil.resumeAll(); // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(processes, drm); } @@ -2908,16 +2901,16 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(processes, drm); } }); eventWaitor.waitForEvent(100); // Thread should interrupt - + // Confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } @@ -2933,37 +2926,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the already suspended threads should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(processes, drm); } }); // Also confirm that all processes are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertTrue("expected all processes to be suspended, but they are not", result); - + // Also confirm that all threads are still suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -2984,39 +2977,39 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the call should ignore the suspended threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(processes, drm); } }); eventWaitorStopped.waitForEvent(100); // Wait for confirmation one thread stopped - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); - assertTrue("expected all processes to be suspended, but they are not", result); - + assertTrue("expected all processes to be suspended, but they are not", result); + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -3037,49 +3030,49 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - - runAsyncCall(new AsyncRunnable() { + + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(processes, drm); } }); - + eventWaitor.waitForEvent(100); // confirm one thread was suspended eventWaitor.waitForEvent(100); // confirm the other thread was suspended - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(processes, drm); } }); assertTrue("expected that all processes are suspended, but they are not", result); - + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected that all threads are suspended, but they are not", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the step operation on multiple threads ////////////////////////////////////////////////////////////////////// @@ -3090,52 +3083,52 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { */ @Test public void testStepProcessNotImplemented() throws Throwable { - final IExecutionDMContext[] processes = new IExecutionDMContext[] { + final IExecutionDMContext[] processes = new IExecutionDMContext[] { SyncUtil.getContainerContext() }; - + for (final IRunControl.StepType type : IRunControl.StepType.values()) { - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.step(processes, type, drm); } }, true /* Not implemented yet*/); } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the different operations on the process and a thread. // Because the thread is part of the process, it should be ignored, // and the results should be as if only the process was selected. ////////////////////////////////////////////////////////////////////// - + /** * Test resume of multiple contexts with one thread which is stopped. * We select the process and the first thread. */ @Test public void testResumeProcessThreadOneThreadStopped() throws Throwable { - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; - + final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); eventWaitor.waitForEvent(100); // Wait for confirmation process resumed - + // Also confirm that process is running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no contexts to be suspended, but found some", result); - + try { eventWaitor.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -3143,21 +3136,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with one thread which is running. * We select the process and the first thread. */ @Test public void testResumeProcessThreadOneThreadRunning() throws Throwable { - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; // Resume the program to get thread running SyncUtil.resumeAll(); - + // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } @@ -3168,14 +3161,14 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running processes - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); // Confirm that all threads are still running - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } @@ -3200,21 +3193,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } @@ -3224,13 +3217,13 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { eventWaitorRunning.waitForEvent(100); // Wait for confirmation that second thread resumed // Also confirm that all processes are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -3253,37 +3246,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation one thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no other running event arrives fail("Got an unexpected running event"); @@ -3291,7 +3284,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with two threads, one which is stopped * while the other is running. @@ -3306,37 +3299,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(1) }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation one thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no other running event arrives fail("Got an unexpected running event"); @@ -3344,7 +3337,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with two running threads. * We select the process and the first thread. @@ -3358,38 +3351,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; - + final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -3397,32 +3390,32 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the suspend operation on processes ////////////////////////////////////////////////////////////////////// - + /** * Test suspend of multiple contexts with one thread which is stopped. * We select the process and the first thread. */ @Test public void testSuspendProcessThreadOneThreadStopped() throws Throwable { - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; - + final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected a single thread but got " + threads.length, threads.length == 1); // No error should be thrown, the already suspended processes should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); // Also confirm that all threads are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } @@ -3430,28 +3423,28 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { assertTrue("expected all processes to be suspended, but they are not", result); // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected all threads to be suspended, but they are not", result); } - + /** * Test suspend of multiple contexts with one thread which is running. * We select the process and the first thread. */ @Test public void testSuspendProcessThreadOneThreadRunning() throws Throwable { - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; // Resume the program to get thread running SyncUtil.resumeAll(); // Confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } @@ -3461,16 +3454,16 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); eventWaitor.waitForEvent(100); // Thread should interrupt - + // Confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } @@ -3487,37 +3480,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the already suspended threads should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); // Also confirm that all processes are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected all processes to be suspended, but they are not", result); - + // Also confirm that all threads are still suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -3539,46 +3532,46 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the call should ignore the suspended threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); eventWaitorStopped.waitForEvent(100); // Wait for confirmation one thread stopped - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); - assertTrue("expected all processes to be suspended, but they are not", result); - + assertTrue("expected all processes to be suspended, but they are not", result); + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected all threads to be suspended, but they are not", result); } - + /** * Test suspend of multiple contexts with two threads, one which is stopped * while the other is running. @@ -3593,39 +3586,39 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(1) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the call should ignore the suspended threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); eventWaitorStopped.waitForEvent(100); // Wait for confirmation one thread stopped - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); - assertTrue("expected all processes to be suspended, but they are not", result); - + assertTrue("expected all processes to be suspended, but they are not", result); + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -3647,49 +3640,49 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - - runAsyncCall(new AsyncRunnable() { + + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); - + eventWaitor.waitForEvent(100); // confirm one thread was suspended eventWaitor.waitForEvent(100); // confirm the other thread was suspended - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected that all processes are suspended, but they are not", result); - + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } }); assertTrue("expected that all threads are suspended, but they are not", result); } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the step operation on multiple threads ////////////////////////////////////////////////////////////////////// @@ -3701,24 +3694,24 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { */ @Test public void testStepProcessThreadNotImplemented() throws Throwable { - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0) }; - + for (final IRunControl.StepType type : IRunControl.StepType.values()) { - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.step(execDmcs, type, drm); } }, true /* Not implemented yet*/); } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the different operations on the process and both threads. // Because the threads are part of the process, they should be ignored, // and the results should be as if only the process was selected. ////////////////////////////////////////////////////////////////////// - + /** * Test resume of multiple contexts with two stopped threads. Only one thread * is resumed. @@ -3729,21 +3722,21 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } @@ -3753,13 +3746,13 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { eventWaitorRunning.waitForEvent(100); // Wait for confirmation that second thread resumed // Also confirm that all processes are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -3782,37 +3775,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); eventWaitorRunning.waitForEvent(100); // Wait for confirmation one thread resumed - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no process to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no other running event arrives fail("Got an unexpected running event"); @@ -3820,7 +3813,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + /** * Test resume of multiple contexts with two running threads. * We select the process and both threads. @@ -3834,38 +3827,38 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; - + final ServiceEventWaitor eventWaitorRunning = new ServiceEventWaitor(fMultiRun.getSession(), MIRunningEvent.class); // No error should be thrown, the call should ignore running threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.resume(execDmcs, drm); } }); - + // Also confirm that all threads are running - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedSome(execDmcs, drm); } }); assertFalse("expected no threads to be suspended, but found some", result); - + try { eventWaitorRunning.waitForEvent(500); // Make sure no running events arrive fail("Got an unexpected running event"); @@ -3873,7 +3866,7 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Timeout expected. Success. } } - + ////////////////////////////////////////////////////////////////////// // Tests for verifying the suspend operation on processes ////////////////////////////////////////////////////////////////////// @@ -3887,37 +3880,37 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { // Run program until both threads are stopped SyncUtil.addBreakpoint("firstBreakpoint", false); - + final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the already suspended threads should be ignored - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); // Also confirm that all processes are still suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected all processes to be suspended, but they are not", result); - + // Also confirm that all threads are still suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -3939,39 +3932,39 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitorStopped = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop eventWaitorStopped.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitorStopped.waitForEvent(2000); // Wait for first thread to stop - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); // No error should be thrown, the call should ignore the suspended threads - runAsyncCall(new AsyncRunnable() { + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); eventWaitorStopped.waitForEvent(100); // Wait for confirmation one thread stopped - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); - assertTrue("expected all processes to be suspended, but they are not", result); - + assertTrue("expected all processes to be suspended, but they are not", result); + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } @@ -3993,42 +3986,42 @@ public class GDBMultiNonStopRunControlTest_7_0 extends BaseTestCase { final ServiceEventWaitor eventWaitor = new ServiceEventWaitor(fMultiRun.getSession(), MIStoppedEvent.class); - SyncUtil.resumeAll(); + SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop eventWaitor.waitForEvent(2000); // Wait for second thread to stop - + // Now resume program again and wait for one of the two threads to stop SyncUtil.resumeAll(); eventWaitor.waitForEvent(2000); // Wait for first thread to stop - + // Now resume the thread again to have both running SyncUtil.resumeAll(); - - final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { + + final IExecutionDMContext[] execDmcs = new IExecutionDMContext[] { SyncUtil.getContainerContext(), SyncUtil.getExecutionContext(0), SyncUtil.getExecutionContext(1) }; final IMIExecutionDMContext[] threads = SyncUtil.getExecutionContexts(); assertTrue("Expected two threads but got " + threads.length, threads.length == 2); - - runAsyncCall(new AsyncRunnable() { + + runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.suspend(execDmcs, drm); } }); - + eventWaitor.waitForEvent(100); // confirm one thread was suspended eventWaitor.waitForEvent(100); // confirm the other thread was suspended - + // Also confirm that all processes are suspended - Boolean result = runAsyncCall(new AsyncRunnable() { + Boolean result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(execDmcs, drm); } }); assertTrue("expected that all processes are suspended, but they are not", result); - + // Also confirm that all threads are suspended - result = runAsyncCall(new AsyncRunnable() { + result = runAsyncCall(new AsyncRunnable() { @Override public void run(DataRequestMonitor drm) { fMultiRun.isSuspendedAll(threads, drm); } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsNonStopTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIExpressionsNonStopTest.java similarity index 71% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsNonStopTest_7_0.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIExpressionsNonStopTest.java index 2c3848156cf..954379d76fc 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsNonStopTest_7_0.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIExpressionsNonStopTest.java @@ -4,30 +4,37 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Marc Khouzam (Ericsson) - Initial Implementation *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; +package org.eclipse.cdt.tests.dsf.gdb.tests.nonstop; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; +import org.eclipse.cdt.tests.dsf.gdb.tests.MIExpressionsTest; import org.junit.Assume; import org.junit.BeforeClass; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_0 extends MIExpressionsTest_7_0 { +@RunWith(Parameterized.class) +public class MIExpressionsNonStopTest extends MIExpressionsTest { @BeforeClass public static void beforeClass() { Assume.assumeTrue(supportsNonStop()); } + @Override + public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.0"); + super.doBeforeTest(); + } + @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlNonStopTargetAvailableTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIRunControlNonStopTargetAvailableTest.java similarity index 60% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlNonStopTargetAvailableTest_7_0.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIRunControlNonStopTargetAvailableTest.java index 43281a431d5..9768bf40f07 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlNonStopTargetAvailableTest_7_0.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/MIRunControlNonStopTargetAvailableTest.java @@ -4,31 +4,41 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Ericsson AB - Initial implementation of Test cases *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - +package org.eclipse.cdt.tests.dsf.gdb.tests.nonstop; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; +import org.eclipse.cdt.tests.dsf.gdb.tests.MIRunControlTargetAvailableTest; import org.junit.Assume; import org.junit.BeforeClass; +import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_0 extends MIRunControlTargetAvailableTest_7_0 { - +@RunWith(Parameterized.class) +public class MIRunControlNonStopTargetAvailableTest extends MIRunControlTargetAvailableTest { @BeforeClass public static void beforeClass() { Assume.assumeTrue(supportsNonStop()); } + @Override + public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.0"); + super.doBeforeTest(); + } + @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + } + + @Test + public void checknothing(){ + } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlNonStopTargetAvailableTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/OperationsWhileTargetIsRunningNonStopTest.java similarity index 60% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlNonStopTargetAvailableTest_7_1.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/OperationsWhileTargetIsRunningNonStopTest.java index 2f6767a5695..7e7041fd88f 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlNonStopTargetAvailableTest_7_1.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/OperationsWhileTargetIsRunningNonStopTest.java @@ -4,22 +4,22 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Ericsson AB - Initial implementation of Test cases *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - +package org.eclipse.cdt.tests.dsf.gdb.tests.nonstop; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; +import org.eclipse.cdt.tests.dsf.gdb.tests.OperationsWhileTargetIsRunningTest; import org.junit.Assume; import org.junit.BeforeClass; +import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_1 extends MIRunControlTargetAvailableTest_7_1 { - +@RunWith(Parameterized.class) +public class OperationsWhileTargetIsRunningNonStopTest extends OperationsWhileTargetIsRunningTest { @BeforeClass public static void beforeClass() { Assume.assumeTrue(supportsNonStop()); @@ -28,7 +28,16 @@ public class MIRunControlNonStopTargetAvailableTest_7_1 extends MIRunControlTarg @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + } + + @Override + public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.0"); + super.doBeforeTest(); + } + + @Test + public void checknothing() { } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionNonStopTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/StepIntoSelectionNonStopTest.java similarity index 62% rename from dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionNonStopTest_7_2.java rename to dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/StepIntoSelectionNonStopTest.java index 2ecd7ad2831..ce29d19ecc2 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionNonStopTest_7_2.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/StepIntoSelectionNonStopTest.java @@ -4,30 +4,40 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; +package org.eclipse.cdt.tests.dsf.gdb.tests.nonstop; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; +import org.eclipse.cdt.tests.dsf.gdb.tests.StepIntoSelectionTest; import org.junit.Assume; import org.junit.BeforeClass; +import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_2 extends StepIntoSelectionTest_7_2 { - +@RunWith(Parameterized.class) +public class StepIntoSelectionNonStopTest extends StepIntoSelectionTest { @BeforeClass public static void beforeClass() { Assume.assumeTrue(supportsNonStop()); } - @Override + @Override protected void setLaunchAttributes() { super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); + } + + @Override + public void doBeforeTest() throws Exception { + assumeGdbVersionAtLeast("7.0"); + super.doBeforeTest(); + } + + @Test + public void checknothing() { } } diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/CommandTimeoutTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/CommandTimeoutTest_6_6.java deleted file mode 100644 index dfbf724aa35..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/CommandTimeoutTest_6_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.CommandTimeoutTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_6_6 extends CommandTimeoutTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBPatternMatchingExpressionsTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBPatternMatchingExpressionsTest_6_6.java deleted file mode 100644 index 15193508e0b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBPatternMatchingExpressionsTest_6_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.GDBPatternMatchingExpressionsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_6_6 extends GDBPatternMatchingExpressionsTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBProcessesTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBProcessesTest_6_6.java deleted file mode 100644 index 0ef913eeb20..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/GDBProcessesTest_6_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.GDBProcessesTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_6_6 extends GDBProcessesTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/LaunchConfigurationAndRestartTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/LaunchConfigurationAndRestartTest_6_6.java deleted file mode 100644 index 1926199ef3a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/LaunchConfigurationAndRestartTest_6_6.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.LaunchConfigurationAndRestartTest; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_6_6 extends LaunchConfigurationAndRestartTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } - - @Override - @Ignore("Not supported before GDB 7.3") - @Test - public void testExitCodeSet() throws Throwable { - super.testExitCodeSet(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIDisassemblyTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIDisassemblyTest_6_6.java deleted file mode 100644 index b6e3e4bec85..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIDisassemblyTest_6_6.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIDisassemblyTest; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_6_6 extends MIDisassemblyTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIExpressionsTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIExpressionsTest_6_6.java deleted file mode 100644 index e43452e8f96..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIExpressionsTest_6_6.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIExpressionsTest; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_6_6 extends MIExpressionsTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } - - @Override - @Ignore("Only works in versions later than GDB6.7") - @Test - public void testCanWriteLValue() throws Throwable { - // Must call the test in the super class to allow further derived - // classes to run this test. - super.testCanWriteLValue(); - } - - @Override - @Ignore("Only works in versions later than GDB6.6") - @Test - public void testChildren() throws Throwable { - // Must call the test in the super class to allow further derived - // classes to run this test. - super.testChildren(); - } - - @Override - @Ignore("Only works in versions later than GDB6.6") - @Test - public void testDeleteChildren() throws Throwable { - // Must call the test in the super class to allow further derived - // classes to run this test. - super.testDeleteChildren(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIMemoryTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIMemoryTest_6_6.java deleted file mode 100644 index b7532e97dd6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIMemoryTest_6_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIMemoryTest; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_6_6 extends MIMemoryTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTargetAvailableTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTargetAvailableTest_6_6.java deleted file mode 100644 index 74551d44f33..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTargetAvailableTest_6_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRunControlTargetAvailableTest; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_6_6 extends MIRunControlTargetAvailableTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTest_6_6.java deleted file mode 100644 index 2e6df756056..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIRunControlTest_6_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRunControlTest; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_6_6 extends MIRunControlTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/OperationsWhileTargetIsRunningTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/OperationsWhileTargetIsRunningTest_6_6.java deleted file mode 100644 index 8c6b86d9813..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/OperationsWhileTargetIsRunningTest_6_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.OperationsWhileTargetIsRunningTest; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_6_6 extends OperationsWhileTargetIsRunningTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/PostMortemCoreTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/PostMortemCoreTest_6_6.java deleted file mode 100644 index 37b9e874ab3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/PostMortemCoreTest_6_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.PostMortemCoreTest; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_6_6 extends PostMortemCoreTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/SourceLookupTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/SourceLookupTest_6_6.java deleted file mode 100644 index a05e397d5d3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/SourceLookupTest_6_6.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2016 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.SourceLookupTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.SourceLookupTest_7_6; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_6_6 extends SourceLookupTest { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } - - @Override - protected void setExeNames() { - EXEC_AC_NAME = "SourceLookupDwarf2AC.exe"; //$NON-NLS-1$ - EXEC_AN_NAME = "SourceLookupDwarf2AN.exe"; //$NON-NLS-1$ - EXEC_RC_NAME = "SourceLookupDwarf2RC.exe"; //$NON-NLS-1$ - EXEC_RN_NAME = "SourceLookupDwarf2RN.exe"; //$NON-NLS-1$ - EXEC_NAME = "SourceLookupDwarf2.exe"; //$NON-NLS-1$ - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingAC() throws Throwable { - super.sourceMappingAC(); - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingAN() throws Throwable { - super.sourceMappingAN(); - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingRC() throws Throwable { - super.sourceMappingRC(); - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingRN() throws Throwable { - super.sourceMappingRN(); - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingBreakpointsAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingBreakpointsAC() throws Throwable { - super.sourceMappingBreakpointsAC(); - } - - /** - * For details on the ignore, see - * {@link SourceLookupTest_7_6#sourceMappingBreakpointsAC()} - */ - @Ignore("Only works starting with GDB 7.6") - @Test - @Override - public void sourceMappingBreakpointsRC() throws Throwable { - super.sourceMappingBreakpointsRC(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/StepIntoSelectionTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/StepIntoSelectionTest_6_6.java deleted file mode 100644 index 2e4199b2fac..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/StepIntoSelectionTest_6_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.StepIntoSelectionTest; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_6_6 extends StepIntoSelectionTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_6_6.java deleted file mode 100644 index c0228b975fe..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_6_6.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.6 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_6.class, - MIRunControlTargetAvailableTest_6_6.class, - MIExpressionsTest_6_6.class, - GDBPatternMatchingExpressionsTest_6_6.class, - MIMemoryTest_6_6.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_6.class, - GDBProcessesTest_6_6.class, - LaunchConfigurationAndRestartTest_6_6.class, - OperationsWhileTargetIsRunningTest_6_6.class, - PostMortemCoreTest_6_6.class, - CommandTimeoutTest_6_6.class, - StepIntoSelectionTest_6_6.class, - SourceLookupTest_6_6.class, - /* Add your test class here */ -}) - -public class Suite_6_6 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - BaseTestCase.ignoreIfGDBMissing(); - } -} - diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_Remote_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_Remote_6_6.java deleted file mode 100644 index 34b25a0c3f4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/Suite_Remote_6_6.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.6 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_6.class, - MIRunControlTargetAvailableTest_6_6.class, - MIExpressionsTest_6_6.class, - GDBPatternMatchingExpressionsTest_6_6.class, - MIMemoryTest_6_6.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_6.class, - GDBProcessesTest_6_6.class, - OperationsWhileTargetIsRunningTest_6_6.class, - CommandTimeoutTest_6_6.class, - StepIntoSelectionTest_6_6.class, - SourceLookupTest_6_6.class, - /* Add your test class here */ -}) - -public class Suite_Remote_6_6 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/CommandTimeoutTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/CommandTimeoutTest_6_7.java deleted file mode 100644 index 358ba3b81f1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/CommandTimeoutTest_6_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.CommandTimeoutTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_6_7 extends CommandTimeoutTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBPatternMatchingExpressionsTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBPatternMatchingExpressionsTest_6_7.java deleted file mode 100644 index 0f53b98abe9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBPatternMatchingExpressionsTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.GDBPatternMatchingExpressionsTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_6_7 extends GDBPatternMatchingExpressionsTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBProcessesTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBProcessesTest_6_7.java deleted file mode 100644 index 809bfb358c2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/GDBProcessesTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.GDBProcessesTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_6_7 extends GDBProcessesTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/LaunchConfigurationAndRestartTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/LaunchConfigurationAndRestartTest_6_7.java deleted file mode 100644 index db797a7b018..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/LaunchConfigurationAndRestartTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.LaunchConfigurationAndRestartTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_6_7 extends LaunchConfigurationAndRestartTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIDisassemblyTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIDisassemblyTest_6_7.java deleted file mode 100644 index 9f5f9622873..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIDisassemblyTest_6_7.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.MIDisassemblyTest_6_6; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_6_7 extends MIDisassemblyTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIExpressionsTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIExpressionsTest_6_7.java deleted file mode 100644 index 52cf4514ae5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIExpressionsTest_6_7.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.MIExpressionsTest_6_6; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_6_7 extends MIExpressionsTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } - - // Re-enable this test starting with GDB 6.7 - @Override - @Test - public void testChildren() throws Throwable { - super.testChildren(); - } - - // Re-enable this test starting with GDB 6.7 - @Override - @Test - public void testDeleteChildren() throws Throwable { - super.testDeleteChildren(); - } - - @Override - @Ignore("Causes a crash in GDB 6.7 only") - @Test - public void testRTTI() throws Throwable { - // Must call the test in the super class to allow further derived - // classes to run this test. - super.testRTTI(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIMemoryTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIMemoryTest_6_7.java deleted file mode 100644 index 3bfc36163c8..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIMemoryTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.MIMemoryTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_6_7 extends MIMemoryTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTargetAvailableTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTargetAvailableTest_6_7.java deleted file mode 100644 index 03848d3ace9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTargetAvailableTest_6_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.MIRunControlTargetAvailableTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_6_7 extends MIRunControlTargetAvailableTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTest_6_7.java deleted file mode 100644 index f06563a412d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/MIRunControlTest_6_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.MIRunControlTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_6_7 extends MIRunControlTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/OperationsWhileTargetIsRunningTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/OperationsWhileTargetIsRunningTest_6_7.java deleted file mode 100644 index eae15a2106d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/OperationsWhileTargetIsRunningTest_6_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.OperationsWhileTargetIsRunningTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_6_7 extends OperationsWhileTargetIsRunningTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/PostMortemCoreTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/PostMortemCoreTest_6_7.java deleted file mode 100644 index 754997d5c4f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/PostMortemCoreTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.PostMortemCoreTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_6_7 extends PostMortemCoreTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/SourceLookupTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/SourceLookupTest_6_7.java deleted file mode 100644 index eb8d4b1c8a6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/SourceLookupTest_6_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.SourceLookupTest_6_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_6_7 extends SourceLookupTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/StepIntoSelectionTest_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/StepIntoSelectionTest_6_7.java deleted file mode 100644 index a8486e46ca4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/StepIntoSelectionTest_6_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.StepIntoSelectionTest_6_6; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_6_7 extends StepIntoSelectionTest_6_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_6_7.java deleted file mode 100644 index 2c024ee4981..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_6_7.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.7 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_7.class, - MIRunControlTargetAvailableTest_6_7.class, - MIExpressionsTest_6_7.class, - GDBPatternMatchingExpressionsTest_6_7.class, - MIMemoryTest_6_7.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_7.class, - GDBProcessesTest_6_7.class, - LaunchConfigurationAndRestartTest_6_7.class, - OperationsWhileTargetIsRunningTest_6_7.class, - PostMortemCoreTest_6_7.class, - CommandTimeoutTest_6_7.class, - StepIntoSelectionTest_6_7.class, - SourceLookupTest_6_7.class, - /* Add your test class here */ -}) - -public class Suite_6_7 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_Remote_6_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_Remote_6_7.java deleted file mode 100644 index 7a2aafc54be..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_7/Suite_Remote_6_7.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.7 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_7.class, - MIRunControlTargetAvailableTest_6_7.class, - MIExpressionsTest_6_7.class, - GDBPatternMatchingExpressionsTest_6_7.class, - MIMemoryTest_6_7.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_7.class, - GDBProcessesTest_6_7.class, - OperationsWhileTargetIsRunningTest_6_7.class, - CommandTimeoutTest_6_7.class, - StepIntoSelectionTest_6_7.class, - SourceLookupTest_6_7.class, - /* Add your test class here */ -}) - -public class Suite_Remote_6_7 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/CommandTimeoutTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/CommandTimeoutTest_6_8.java deleted file mode 100644 index 6e706e61cf8..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/CommandTimeoutTest_6_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.CommandTimeoutTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_6_8 extends CommandTimeoutTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBPatternMatchingExpressionsTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBPatternMatchingExpressionsTest_6_8.java deleted file mode 100644 index 55f0059ba12..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBPatternMatchingExpressionsTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.GDBPatternMatchingExpressionsTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_6_8 extends GDBPatternMatchingExpressionsTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBProcessesTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBProcessesTest_6_8.java deleted file mode 100644 index e1924adaf88..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/GDBProcessesTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.GDBProcessesTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_6_8 extends GDBProcessesTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/LaunchConfigurationAndRestartTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/LaunchConfigurationAndRestartTest_6_8.java deleted file mode 100644 index ec6053be85d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/LaunchConfigurationAndRestartTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.LaunchConfigurationAndRestartTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_6_8 extends LaunchConfigurationAndRestartTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIDisassemblyTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIDisassemblyTest_6_8.java deleted file mode 100644 index b8255da469f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIDisassemblyTest_6_8.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.MIDisassemblyTest_6_7; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_6_8 extends MIDisassemblyTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIExpressionsTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIExpressionsTest_6_8.java deleted file mode 100644 index 98997e90a52..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIExpressionsTest_6_8.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.MIExpressionsTest_6_7; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_6_8 extends MIExpressionsTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } - - // Re-enable this test starting with GDB 6.8 - @Override - @Test - public void testCanWriteLValue() throws Throwable { - super.testCanWriteLValue(); - } - - // Re-enable this test starting with GDB 6.8 - @Override - @Test - public void testRTTI() throws Throwable { - super.testRTTI(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIMemoryTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIMemoryTest_6_8.java deleted file mode 100644 index d0d9cb38115..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIMemoryTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.MIMemoryTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_6_8 extends MIMemoryTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTargetAvailableTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTargetAvailableTest_6_8.java deleted file mode 100644 index c22cd0559a4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTargetAvailableTest_6_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.MIRunControlTargetAvailableTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_6_8 extends MIRunControlTargetAvailableTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTest_6_8.java deleted file mode 100644 index 5070260ae19..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/MIRunControlTest_6_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.MIRunControlTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_6_8 extends MIRunControlTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/OperationsWhileTargetIsRunningTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/OperationsWhileTargetIsRunningTest_6_8.java deleted file mode 100644 index 2208805b5cb..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/OperationsWhileTargetIsRunningTest_6_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.OperationsWhileTargetIsRunningTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_6_8 extends OperationsWhileTargetIsRunningTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/PostMortemCoreTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/PostMortemCoreTest_6_8.java deleted file mode 100644 index 05920f446b4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/PostMortemCoreTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.PostMortemCoreTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_6_8 extends PostMortemCoreTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/SourceLookupTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/SourceLookupTest_6_8.java deleted file mode 100644 index cd7784b796b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/SourceLookupTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.SourceLookupTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_6_8 extends SourceLookupTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/StepIntoSelectionTest_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/StepIntoSelectionTest_6_8.java deleted file mode 100644 index 664df7a8305..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/StepIntoSelectionTest_6_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.StepIntoSelectionTest_6_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_6_8 extends StepIntoSelectionTest_6_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_6_8.java deleted file mode 100644 index eb0516b33ec..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_6_8.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.8 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_8.class, - MIRunControlTargetAvailableTest_6_8.class, - MIExpressionsTest_6_8.class, - GDBPatternMatchingExpressionsTest_6_8.class, - MIMemoryTest_6_8.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_8.class, - GDBProcessesTest_6_8.class, - LaunchConfigurationAndRestartTest_6_8.class, - OperationsWhileTargetIsRunningTest_6_8.class, - PostMortemCoreTest_6_8.class, - CommandTimeoutTest_6_8.class, - StepIntoSelectionTest_6_8.class, - SourceLookupTest_6_8.class, - /* Add your test class here */ -}) - -public class Suite_6_8 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_Remote_6_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_Remote_6_8.java deleted file mode 100644 index 1d9ec494f00..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_8/Suite_Remote_6_8.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 6.8 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_6_8.class, - MIRunControlTargetAvailableTest_6_8.class, - MIExpressionsTest_6_8.class, - GDBPatternMatchingExpressionsTest_6_8.class, - MIMemoryTest_6_8.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_6_8.class, - GDBProcessesTest_6_8.class, - OperationsWhileTargetIsRunningTest_6_8.class, - CommandTimeoutTest_6_8.class, - StepIntoSelectionTest_6_8.class, - SourceLookupTest_6_8.class, - /* Add your test class here */ -}) - -public class Suite_Remote_6_8 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/CommandTimeoutTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/CommandTimeoutTest_7_0.java deleted file mode 100644 index e52dd8f3e3a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/CommandTimeoutTest_7_0.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.CommandTimeoutTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_0 extends CommandTimeoutTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBPatternMatchingExpressionsTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBPatternMatchingExpressionsTest_7_0.java deleted file mode 100644 index 38109caa82b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBPatternMatchingExpressionsTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.GDBPatternMatchingExpressionsTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_0 extends GDBPatternMatchingExpressionsTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBProcessesTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBProcessesTest_7_0.java deleted file mode 100644 index 7951805f58d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/GDBProcessesTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.GDBProcessesTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_0 extends GDBProcessesTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/LaunchConfigurationAndRestartTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/LaunchConfigurationAndRestartTest_7_0.java deleted file mode 100644 index e377e9a69b8..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/LaunchConfigurationAndRestartTest_7_0.java +++ /dev/null @@ -1,360 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Simon Marchi (Ericsson) - Disable some reverse tests for gdb 7.0 and 7.1. - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; - -import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants; -import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor; -import org.eclipse.cdt.dsf.concurrent.ImmediateDataRequestMonitor; -import org.eclipse.cdt.dsf.concurrent.Query; -import org.eclipse.cdt.dsf.datamodel.DMContexts; -import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; -import org.eclipse.cdt.dsf.debug.service.IRunControl.IExecutionDMContext; -import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType; -import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData; -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; -import org.eclipse.cdt.dsf.mi.service.command.output.CLITraceInfo; -import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakListInfo; -import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakpoint; -import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.ServiceEventWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.LaunchConfigurationAndRestartTest_6_8; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_0 extends LaunchConfigurationAndRestartTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } - - /** - * This test will confirm that we have turned on "pending breakpoints" - * The pending breakpoint setting only affects CLI commands so we have - * to test with one. We don't have classes to set breakpoints using CLI, - * but we do for tracepoints, which is the same for this test. - * - * The pending breakpoint feature only works with tracepoints starting - * with GDB 7.0. - * - * We could run this test before 7.0 but we would have to use a breakpoint - * set using CLI commands. - */ - @Test - public void testPendingBreakpointSetting() throws Throwable { - doLaunch(); - MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); - - final IBreakpointsTargetDMContext bpTargetDmc = DMContexts.getAncestorOfType(stoppedEvent.getDMContext(), - IBreakpointsTargetDMContext.class); - Query query = new Query() { - @Override - protected void execute(final DataRequestMonitor rm) { - fGdbControl.queueCommand( - fGdbControl.getCommandFactory().createCLITrace(bpTargetDmc, "invalid", ""), - new ImmediateDataRequestMonitor(rm) { - @Override - protected void handleSuccess() { - fGdbControl.queueCommand( - fGdbControl.getCommandFactory().createMIBreakList(bpTargetDmc), - new ImmediateDataRequestMonitor(rm) { - @Override - protected void handleSuccess() { - rm.setData(getData()); - rm.done(); - } - }); - } - }); - } - }; - try { - fExpService.getExecutor().execute(query); - MIBreakListInfo value = query.get(500, TimeUnit.MILLISECONDS); - MIBreakpoint[] bps = value.getMIBreakpoints(); - assertTrue("Expected 1 breakpoint but got " + bps.length, - bps.length == 1); - assertTrue("Expending a breakpoint but got one at " + bps[0].getAddress(), - bps[0].getAddress().equals("")); - } catch (InterruptedException e) { - fail(e.getMessage()); - } catch (ExecutionException e) { - fail(e.getCause().getMessage()); - } catch (TimeoutException e) { - fail(e.getMessage()); - } - } - - /** - * This test will tell the launch to "stop on main" at method main() with reverse - * debugging enabled. We will verify that the launch stops at main() and that - * reverse debugging is enabled. - * - * In this test, the execution crosses getenv() while recording is enabled. gdb 7.0 - * and 7.1 have trouble with that. We disable the test for those, and enable it for - * 7.2 and upwards. - */ - @Test - @Ignore - public void testStopAtMainWithReverse() throws Throwable { - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, true); - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "main"); - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); - doLaunch(); - - MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); - // Make sure we stopped at the first line of main - assertTrue("Expected to stop at main:" + FIRST_LINE_IN_MAIN + " but got " + - stoppedEvent.getFrame().getFunction() + ":" + - Integer.toString(stoppedEvent.getFrame().getLine()), - stoppedEvent.getFrame().getFunction().equals("main") && - stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); - - // Step a couple of times and check where we are - final int NUM_STEPS = 3; - stoppedEvent = SyncUtil.step(NUM_STEPS, StepType.STEP_OVER); - assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN+NUM_STEPS) + " but got " + - stoppedEvent.getFrame().getFunction() + ":" + - Integer.toString(stoppedEvent.getFrame().getLine()), - stoppedEvent.getFrame().getFunction().equals("main") && - stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN+NUM_STEPS); - - // Now step backwards to make sure reverse was enabled - - final ServiceEventWaitor eventWaitor = - new ServiceEventWaitor( - fSession, - MIStoppedEvent.class); - - final int REVERSE_NUM_STEPS = 2; - final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); - Query query = new Query() { - @Override - protected void execute(DataRequestMonitor rm) { - fGdbControl.queueCommand( - fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), - rm); - } - }; - try { - fGdbControl.getExecutor().execute(query); - query.get(500, TimeUnit.MILLISECONDS); - } catch (InterruptedException e) { - fail(e.getMessage()); - } catch (ExecutionException e) { - fail(e.getCause().getMessage()); - } catch (TimeoutException e) { - fail(e.getMessage()); - } - - stoppedEvent = eventWaitor.waitForEvent(1000); - - assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN+NUM_STEPS-REVERSE_NUM_STEPS) + " but got " + - stoppedEvent.getFrame().getFunction() + ":" + - Integer.toString(stoppedEvent.getFrame().getLine()), - stoppedEvent.getFrame().getFunction().equals("main") && - stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN+NUM_STEPS-REVERSE_NUM_STEPS); - } - - /** - * Repeat the test testStopAtMainWithReverse, but after a restart. - */ - @Test - @Ignore - public void testStopAtMainWithReverseRestart() throws Throwable { - fRestart = true; - testStopAtMainWithReverse(); - } - - /** - * This test will tell the launch to "stop on main" at method stopAtOther(), - * with reverse debugging enabled. We will then verify that the launch is properly - * stopped at stopAtOther() and that it can go backwards until main() (this will - * confirm that reverse debugging was enabled at the very start). - * - * In this test, the execution crosses getenv() while recording is enabled. gdb 7.0 - * and 7.1 have trouble with that. We disable the test for those, and enable it for - * 7.2 and upwards. - */ - @Test - @Ignore - public void testStopAtOtherWithReverse() throws Throwable { - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, true); - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "stopAtOther"); - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); - doLaunch(); - - // Wait for the launch to properly complete. This is because with reverse - // the first stopped event does not mean the launch is complete. There will - // be another stopped event - synchronized (this) { - wait(1000); - } - - MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); - - // The initial stopped event is not the last stopped event. - // With reverse we have to stop the program, turn on reverse and start it again. - // Let's get the frame where we really are stopped right now. - final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); - IFrameDMData frame = SyncUtil.getFrameData(execDmc, 0); - - // Make sure we stopped at the first line of main - assertTrue("Expected to stop at stopAtOther but got " + - frame.getFunction(), - frame.getFunction().equals("stopAtOther")); - - // Now step backwards all the way to the start to make sure reverse was enabled from the very start - final ServiceEventWaitor eventWaitor = - new ServiceEventWaitor( - fSession, - MIStoppedEvent.class); - - final int REVERSE_NUM_STEPS = 3; - Query query2 = new Query() { - @Override - protected void execute(DataRequestMonitor rm) { - fGdbControl.queueCommand( - fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), - rm); - } - }; - try { - fGdbControl.getExecutor().execute(query2); - query2.get(500, TimeUnit.MILLISECONDS); - } catch (InterruptedException e) { - fail(e.getMessage()); - } catch (ExecutionException e) { - fail(e.getCause().getMessage()); - } catch (TimeoutException e) { - fail(e.getMessage()); - } - - stoppedEvent = eventWaitor.waitForEvent(1000); - - assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN) + " but got " + - stoppedEvent.getFrame().getFunction() + ":" + - Integer.toString(stoppedEvent.getFrame().getLine()), - stoppedEvent.getFrame().getFunction().equals("main") && - stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); - } - - /** - * Repeat the test testStopAtOtherWithReverse, but after a restart. - */ - @Test - @Ignore - public void testStopAtOtherWithReverseRestart() throws Throwable { - fRestart = true; - testStopAtOtherWithReverse(); - } - /** - * This test will set a breakpoint at the last line of the program and will tell - * the launch to NOT "stop on main", with reverse debugging enabled. We will - * verify that the first stop is at the last line of the program but that the program - * can run backwards until main() (this will confirm that reverse debugging was - * enabled at the very start). - */ - @Ignore - @Test - public void testNoStopAtMainWithReverse() throws Throwable { - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); - // Set this one as well to make sure it gets ignored - setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, "main"); - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REVERSE, true); - - // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED - // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED - // MUST SET BREAKPOINT AT LAST LINE BUT BEFORE LAUNCH IS STARTED - // see testNoStopAtMain() - - doLaunch(); - - // Wait for the launch to properly complete. This is because with reverse - // the first stopped event does not mean the launch is complete. There will - // be another stopped event - synchronized (this) { - wait(1000); - } - - MIStoppedEvent stoppedEvent = getInitialStoppedEvent(); - - // The initial stopped event is not the last stopped event. - // With reverse we have to stop the program, turn on reverse and start it again. - // Let's get the frame where we really are stopped right now. - final IExecutionDMContext execDmc = stoppedEvent.getDMContext(); - IFrameDMData frame = SyncUtil.getFrameData(execDmc, 0); - - // Make sure we stopped at the first line of main - assertTrue("Expected to stop at main:" + LAST_LINE_IN_MAIN + " but got " + - frame.getFunction() + ":" + - Integer.toString(frame.getLine()), - frame.getFunction().equals("main") && - frame.getLine() == LAST_LINE_IN_MAIN); - - // Now step backwards all the way to the start to make sure reverse was enabled from the very start - final ServiceEventWaitor eventWaitor = - new ServiceEventWaitor( - fSession, - MIStoppedEvent.class); - - final int REVERSE_NUM_STEPS = 3; - Query query2 = new Query() { - @Override - protected void execute(DataRequestMonitor rm) { - fGdbControl.queueCommand( - fGdbControl.getCommandFactory().createMIExecReverseNext(execDmc, REVERSE_NUM_STEPS), - rm); - } - }; - try { - fGdbControl.getExecutor().execute(query2); - query2.get(500, TimeUnit.MILLISECONDS); - } catch (InterruptedException e) { - fail(e.getMessage()); - } catch (ExecutionException e) { - fail(e.getCause().getMessage()); - } catch (TimeoutException e) { - fail(e.getMessage()); - } - - stoppedEvent = eventWaitor.waitForEvent(1000); - - assertTrue("Expected to stop at main:" + (FIRST_LINE_IN_MAIN) + " but got " + - stoppedEvent.getFrame().getFunction() + ":" + - Integer.toString(stoppedEvent.getFrame().getLine()), - stoppedEvent.getFrame().getFunction().equals("main") && - stoppedEvent.getFrame().getLine() == FIRST_LINE_IN_MAIN); - } - - /** - * Repeat the test testNoStopAtMainWithReverse, but after a restart. - */ - @Ignore - @Test - public void testNoStopAtMainWithReverseRestart() throws Throwable { - fRestart = true; - testNoStopAtMainWithReverse(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIDisassemblyTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIDisassemblyTest_7_0.java deleted file mode 100644 index c7d751c142f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIDisassemblyTest_7_0.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.MIDisassemblyTest_6_8; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_0 extends MIDisassemblyTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsTest_7_0.java deleted file mode 100644 index 7543dd6e689..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIExpressionsTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.MIExpressionsTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_0 extends MIExpressionsTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIMemoryTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIMemoryTest_7_0.java deleted file mode 100644 index 2f04cb4b963..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIMemoryTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.MIMemoryTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_0 extends MIMemoryTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTargetAvailableTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTargetAvailableTest_7_0.java deleted file mode 100644 index c79552b48eb..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTargetAvailableTest_7_0.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.MIRunControlTargetAvailableTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_0 extends MIRunControlTargetAvailableTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTest_7_0.java deleted file mode 100644 index b7de8197cd9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/MIRunControlTest_7_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - - -import org.eclipse.cdt.dsf.debug.service.IRunControl.StateChangeReason; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.MIRunControlTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_0 extends MIRunControlTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } - - @Override - protected StateChangeReason getExpectedMainThreadStopReason() { - return StateChangeReason.BREAKPOINT; - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningNonStopTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningNonStopTest_7_0.java deleted file mode 100644 index 740c3663f21..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningNonStopTest_7_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_0 extends OperationsWhileTargetIsRunningTest_7_0 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningTest_7_0.java deleted file mode 100644 index 57bfed0c16a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/OperationsWhileTargetIsRunningTest_7_0.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.OperationsWhileTargetIsRunningTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_0 extends OperationsWhileTargetIsRunningTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/PostMortemCoreTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/PostMortemCoreTest_7_0.java deleted file mode 100644 index bbda599e091..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/PostMortemCoreTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.PostMortemCoreTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_0 extends PostMortemCoreTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/SourceLookupTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/SourceLookupTest_7_0.java deleted file mode 100644 index c30d9657975..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/SourceLookupTest_7_0.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.SourceLookupTest_6_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_0 extends SourceLookupTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionNonStopTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionNonStopTest_7_0.java deleted file mode 100644 index 3ec9cc0e03f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionNonStopTest_7_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_0 extends StepIntoSelectionTest_7_0 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionTest_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionTest_7_0.java deleted file mode 100644 index e4e9c228a3d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/StepIntoSelectionTest_7_0.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.StepIntoSelectionTest_6_8; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_0 extends StepIntoSelectionTest_6_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_7_0.java deleted file mode 100644 index 949898678b1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_7_0.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.0 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_0.class, - MIRunControlTargetAvailableTest_7_0.class, - MIRunControlNonStopTargetAvailableTest_7_0.class, - MIExpressionsTest_7_0.class, - MIExpressionsNonStopTest_7_0.class, - GDBPatternMatchingExpressionsTest_7_0.class, - MIMemoryTest_7_0.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_0.class, - GDBProcessesTest_7_0.class, - LaunchConfigurationAndRestartTest_7_0.class, - OperationsWhileTargetIsRunningTest_7_0.class, - OperationsWhileTargetIsRunningNonStopTest_7_0.class, - PostMortemCoreTest_7_0.class, - CommandTimeoutTest_7_0.class, - GDBMultiNonStopRunControlTest_7_0.class, - StepIntoSelectionTest_7_0.class, - StepIntoSelectionNonStopTest_7_0.class, - SourceLookupTest_7_0.class, - /* Add your test class here */ -}) - -public class Suite_7_0 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_Remote_7_0.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_Remote_7_0.java deleted file mode 100644 index 637267e9461..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_0/Suite_Remote_7_0.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.0 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_0.class, - MIRegistersTest.class, - MIRunControlTargetAvailableTest_7_0.class, - MIRunControlNonStopTargetAvailableTest_7_0.class, - MIRunControlTest_7_0.class, - MIExpressionsTest_7_0.class, - MIExpressionsNonStopTest_7_0.class, - GDBPatternMatchingExpressionsTest_7_0.class, - MIMemoryTest_7_0.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_0.class, - GDBProcessesTest_7_0.class, - OperationsWhileTargetIsRunningTest_7_0.class, - OperationsWhileTargetIsRunningNonStopTest_7_0.class, - CommandTimeoutTest_7_0.class, - GDBMultiNonStopRunControlTest_7_0.class, - StepIntoSelectionTest_7_0.class, - StepIntoSelectionNonStopTest_7_0.class, - SourceLookupTest_7_0.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_0 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/CommandTimeoutTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/CommandTimeoutTest_7_1.java deleted file mode 100644 index 13e05dba080..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/CommandTimeoutTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.CommandTimeoutTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_1 extends CommandTimeoutTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBMultiNonStopRunControlTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBMultiNonStopRunControlTest_7_1.java deleted file mode 100644 index ff2cab0d1d5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBMultiNonStopRunControlTest_7_1.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.GDBMultiNonStopRunControlTest_7_0; -import org.junit.runner.RunWith; - - -/** - * Tests IMultiRunControl class for Non-stop multi-threaded application. - */ -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_1 extends GDBMultiNonStopRunControlTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBPatternMatchingExpressionsTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBPatternMatchingExpressionsTest_7_1.java deleted file mode 100644 index 1e0a5189daa..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBPatternMatchingExpressionsTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.GDBPatternMatchingExpressionsTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_1 extends GDBPatternMatchingExpressionsTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBProcessesTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBProcessesTest_7_1.java deleted file mode 100644 index af73ea8c6c0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBProcessesTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.GDBProcessesTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_1 extends GDBProcessesTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBRemoteTracepointsTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBRemoteTracepointsTest_7_1.java deleted file mode 100644 index b3cfcd2fa0e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/GDBRemoteTracepointsTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.GDBRemoteTracepointsTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_1 extends GDBRemoteTracepointsTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/LaunchConfigurationAndRestartTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/LaunchConfigurationAndRestartTest_7_1.java deleted file mode 100644 index c11c1ffdb48..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/LaunchConfigurationAndRestartTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.LaunchConfigurationAndRestartTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_1 extends LaunchConfigurationAndRestartTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIDisassemblyTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIDisassemblyTest_7_1.java deleted file mode 100644 index 4d4abc39ec3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIDisassemblyTest_7_1.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.MIDisassemblyTest_7_0; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_1 extends MIDisassemblyTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsNonStopTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsNonStopTest_7_1.java deleted file mode 100644 index 24a0121ff42..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsNonStopTest_7_1.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_1 extends MIExpressionsTest_7_1 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsTest_7_1.java deleted file mode 100644 index 03dd4337da7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIExpressionsTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.MIExpressionsTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_1 extends MIExpressionsTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIMemoryTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIMemoryTest_7_1.java deleted file mode 100644 index 960a47e2ed3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIMemoryTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.MIMemoryTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_1 extends MIMemoryTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTargetAvailableTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTargetAvailableTest_7_1.java deleted file mode 100644 index 301f071ebee..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTargetAvailableTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.MIRunControlTargetAvailableTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_1 extends MIRunControlTargetAvailableTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTest_7_1.java deleted file mode 100644 index 1c1febafb19..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/MIRunControlTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.MIRunControlTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_1 extends MIRunControlTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningNonStopTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningNonStopTest_7_1.java deleted file mode 100644 index b80ac138716..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningNonStopTest_7_1.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_1 extends OperationsWhileTargetIsRunningTest_7_1 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningTest_7_1.java deleted file mode 100644 index a703bfb60de..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/OperationsWhileTargetIsRunningTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.OperationsWhileTargetIsRunningTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_1 extends OperationsWhileTargetIsRunningTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/PostMortemCoreTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/PostMortemCoreTest_7_1.java deleted file mode 100644 index 304f43d1d3a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/PostMortemCoreTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.PostMortemCoreTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_1 extends PostMortemCoreTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/SourceLookupTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/SourceLookupTest_7_1.java deleted file mode 100644 index d9400d44608..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/SourceLookupTest_7_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.SourceLookupTest_7_0; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_1 extends SourceLookupTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionNonStopTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionNonStopTest_7_1.java deleted file mode 100644 index b282ebe4fd4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionNonStopTest_7_1.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_1 extends StepIntoSelectionTest_7_1 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionTest_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionTest_7_1.java deleted file mode 100644 index 2449fed7090..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/StepIntoSelectionTest_7_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.StepIntoSelectionTest_7_0; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_1 extends StepIntoSelectionTest_7_0 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_7_1.java deleted file mode 100644 index fa8c53ce331..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_7_1.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.1 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_1.class, - MIRunControlTargetAvailableTest_7_1.class, - MIRunControlNonStopTargetAvailableTest_7_1.class, - MIExpressionsTest_7_1.class, - MIExpressionsNonStopTest_7_1.class, - GDBPatternMatchingExpressionsTest_7_1.class, - MIMemoryTest_7_1.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_1.class, - GDBProcessesTest_7_1.class, - LaunchConfigurationAndRestartTest_7_1.class, - OperationsWhileTargetIsRunningTest_7_1.class, - OperationsWhileTargetIsRunningNonStopTest_7_1.class, - PostMortemCoreTest_7_1.class, - CommandTimeoutTest_7_1.class, - GDBMultiNonStopRunControlTest_7_1.class, - StepIntoSelectionTest_7_1.class, - StepIntoSelectionNonStopTest_7_1.class, - SourceLookupTest_7_1.class, - /* Add your test class here */ -}) - -public class Suite_7_1 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_Remote_7_1.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_Remote_7_1.java deleted file mode 100644 index c43db82e3fd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_1/Suite_Remote_7_1.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.1 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_1.class, - MIRegistersTest.class, - MIRunControlTargetAvailableTest_7_1.class, - MIRunControlNonStopTargetAvailableTest_7_1.class, - MIRunControlTest_7_1.class, - MIExpressionsTest_7_1.class, - MIExpressionsNonStopTest_7_1.class, - GDBPatternMatchingExpressionsTest_7_1.class, - MIMemoryTest_7_1.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_1.class, - GDBProcessesTest_7_1.class, - OperationsWhileTargetIsRunningTest_7_1.class, - OperationsWhileTargetIsRunningNonStopTest_7_1.class, - CommandTimeoutTest_7_1.class, - GDBMultiNonStopRunControlTest_7_1.class, - StepIntoSelectionTest_7_1.class, - StepIntoSelectionNonStopTest_7_1.class, - SourceLookupTest_7_1.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_1 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/CommandTimeoutTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/CommandTimeoutTest_7_10.java deleted file mode 100644 index b9d41ac8229..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/CommandTimeoutTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.CommandTimeoutTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_10 extends CommandTimeoutTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleBreakpointsTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleBreakpointsTest_7_10.java deleted file mode 100644 index 4dfd9e79cdd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleBreakpointsTest_7_10.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBConsoleBreakpointsTest_7_9; - -public class GDBConsoleBreakpointsTest_7_10 extends GDBConsoleBreakpointsTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleSynchronizingTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleSynchronizingTest_7_10.java deleted file mode 100644 index cc21126a178..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBConsoleSynchronizingTest_7_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBConsoleSynchronizingTest_7_9; -import org.junit.runner.RunWith; - -/** - * This test case verifies that different commands issued from the - * GDB console cause proper updating within the CDT views. - */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_10 extends GDBConsoleSynchronizingTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBMultiNonStopRunControlTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBMultiNonStopRunControlTest_7_10.java deleted file mode 100644 index 7a0270c9441..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBMultiNonStopRunControlTest_7_10.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBMultiNonStopRunControlTest_7_9; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_10 extends GDBMultiNonStopRunControlTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBPatternMatchingExpressionsTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBPatternMatchingExpressionsTest_7_10.java deleted file mode 100644 index 3657f93e079..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBPatternMatchingExpressionsTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBPatternMatchingExpressionsTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_10 extends GDBPatternMatchingExpressionsTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBProcessesTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBProcessesTest_7_10.java deleted file mode 100644 index da3bc8d70be..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBProcessesTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBProcessesTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_10 extends GDBProcessesTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBRemoteTracepointsTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBRemoteTracepointsTest_7_10.java deleted file mode 100644 index 01cba4d814e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/GDBRemoteTracepointsTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.GDBRemoteTracepointsTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_10 extends GDBRemoteTracepointsTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/LaunchConfigurationAndRestartTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/LaunchConfigurationAndRestartTest_7_10.java deleted file mode 100644 index 12286d0ed1f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/LaunchConfigurationAndRestartTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.LaunchConfigurationAndRestartTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_10 extends LaunchConfigurationAndRestartTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIDisassemblyTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIDisassemblyTest_7_10.java deleted file mode 100644 index a80756b97d0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIDisassemblyTest_7_10.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.MIDisassemblyTest_7_9; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_10 extends MIDisassemblyTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsNonStopTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsNonStopTest_7_10.java deleted file mode 100644 index d78129d2756..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsNonStopTest_7_10.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_10 extends MIExpressionsTest_7_10 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsTest_7_10.java deleted file mode 100644 index f8b622ba8b2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIExpressionsTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.MIExpressionsTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_10 extends MIExpressionsTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIMemoryTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIMemoryTest_7_10.java deleted file mode 100644 index dc8f8968f3a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIMemoryTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.MIMemoryTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_10 extends MIMemoryTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlNonStopTargetAvailableTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlNonStopTargetAvailableTest_7_10.java deleted file mode 100644 index 7652acac5a7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlNonStopTargetAvailableTest_7_10.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_10 extends MIRunControlTargetAvailableTest_7_10 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTargetAvailableTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTargetAvailableTest_7_10.java deleted file mode 100644 index ef5d5e340ec..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTargetAvailableTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.MIRunControlTargetAvailableTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_10 extends MIRunControlTargetAvailableTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTest_7_10.java deleted file mode 100644 index 462e195e9c4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/MIRunControlTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.MIRunControlTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_10 extends MIRunControlTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningNonStopTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningNonStopTest_7_10.java deleted file mode 100644 index e7e773e430f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningNonStopTest_7_10.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_10 extends OperationsWhileTargetIsRunningTest_7_10 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningTest_7_10.java deleted file mode 100644 index e3ac76d5f9b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/OperationsWhileTargetIsRunningTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.OperationsWhileTargetIsRunningTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_10 extends OperationsWhileTargetIsRunningTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/PostMortemCoreTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/PostMortemCoreTest_7_10.java deleted file mode 100644 index 66e9f9eb1eb..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/PostMortemCoreTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.PostMortemCoreTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_10 extends PostMortemCoreTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/SourceLookupTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/SourceLookupTest_7_10.java deleted file mode 100644 index cde7d27a69b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/SourceLookupTest_7_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.SourceLookupTest_7_9; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_10 extends SourceLookupTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionNonStopTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionNonStopTest_7_10.java deleted file mode 100644 index 7644e5b97c7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionNonStopTest_7_10.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_10 extends StepIntoSelectionTest_7_10 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionTest_7_10.java deleted file mode 100644 index f9e5de8fb8e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/StepIntoSelectionTest_7_10.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.StepIntoSelectionTest_7_9; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_10 extends StepIntoSelectionTest_7_9 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_7_10.java deleted file mode 100644 index a498e8ceae7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_7_10.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_10. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_10.class, - MIRunControlTargetAvailableTest_7_10.class, - MIRunControlNonStopTargetAvailableTest_7_10.class, - MIExpressionsTest_7_10.class, - MIExpressionsNonStopTest_7_10.class, - GDBPatternMatchingExpressionsTest_7_10.class, - MIMemoryTest_7_10.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_10.class, - GDBProcessesTest_7_10.class, - LaunchConfigurationAndRestartTest_7_10.class, - OperationsWhileTargetIsRunningTest_7_10.class, - OperationsWhileTargetIsRunningNonStopTest_7_10.class, - PostMortemCoreTest_7_10.class, - CommandTimeoutTest_7_10.class, - GDBMultiNonStopRunControlTest_7_10.class, - GDBConsoleBreakpointsTest_7_10.class, - GDBConsoleSynchronizingTest_7_10.class, - StepIntoSelectionTest_7_10.class, - StepIntoSelectionNonStopTest_7_10.class, - SourceLookupTest_7_10.class, - /* Add your test class here */ -}) - -public class Suite_7_10 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_Remote_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_Remote_7_10.java deleted file mode 100644 index 009fa27f74d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/Suite_Remote_7_10.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_10 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_10.class, - GDBRemoteTracepointsTest_7_10.class, - MIRegistersTest.class, - MIRunControlTest_7_10.class, - MIRunControlTargetAvailableTest_7_10.class, - MIRunControlNonStopTargetAvailableTest_7_10.class, - MIExpressionsTest_7_10.class, - MIExpressionsNonStopTest_7_10.class, - GDBPatternMatchingExpressionsTest_7_10.class, - MIMemoryTest_7_10.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_10.class, - GDBProcessesTest_7_10.class, - OperationsWhileTargetIsRunningTest_7_10.class, - OperationsWhileTargetIsRunningNonStopTest_7_10.class, - CommandTimeoutTest_7_10.class, - GDBConsoleBreakpointsTest_7_10.class, - TraceFileTest_7_10.class, - GDBConsoleSynchronizingTest_7_10.class, - StepIntoSelectionTest_7_10.class, - StepIntoSelectionNonStopTest_7_10.class, - SourceLookupTest_7_10.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_10 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/TraceFileTest_7_10.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/TraceFileTest_7_10.java deleted file mode 100644 index d417fad71fd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_10/TraceFileTest_7_10.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.TraceFileTest_7_9; - -public class TraceFileTest_7_10 extends TraceFileTest_7_9 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/CommandTimeoutTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/CommandTimeoutTest_7_11.java deleted file mode 100644 index 139c3190e6a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/CommandTimeoutTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.CommandTimeoutTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_11 extends CommandTimeoutTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleBreakpointsTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleBreakpointsTest_7_11.java deleted file mode 100644 index 5b9a6e6de37..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleBreakpointsTest_7_11.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBConsoleBreakpointsTest_7_10; - -public class GDBConsoleBreakpointsTest_7_11 extends GDBConsoleBreakpointsTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleSynchronizingTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleSynchronizingTest_7_11.java deleted file mode 100644 index 1289a501336..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBConsoleSynchronizingTest_7_11.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBConsoleSynchronizingTest_7_10; -import org.junit.runner.RunWith; - -/** - * This test case verifies that different commands issued from the - * GDB console cause proper updating within the CDT views. - */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_11 extends GDBConsoleSynchronizingTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBMultiNonStopRunControlTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBMultiNonStopRunControlTest_7_11.java deleted file mode 100644 index b467b55cf6f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBMultiNonStopRunControlTest_7_11.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBMultiNonStopRunControlTest_7_10; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_11 extends GDBMultiNonStopRunControlTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBPatternMatchingExpressionsTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBPatternMatchingExpressionsTest_7_11.java deleted file mode 100644 index 1c1e8adca4e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBPatternMatchingExpressionsTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBPatternMatchingExpressionsTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_11 extends GDBPatternMatchingExpressionsTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBProcessesTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBProcessesTest_7_11.java deleted file mode 100644 index 49d90c7a2c4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBProcessesTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBProcessesTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_11 extends GDBProcessesTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBRemoteTracepointsTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBRemoteTracepointsTest_7_11.java deleted file mode 100644 index 66fca2e0ebc..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/GDBRemoteTracepointsTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.GDBRemoteTracepointsTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_11 extends GDBRemoteTracepointsTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/LaunchConfigurationAndRestartTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/LaunchConfigurationAndRestartTest_7_11.java deleted file mode 100644 index c79e1875da3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/LaunchConfigurationAndRestartTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.LaunchConfigurationAndRestartTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_11 extends LaunchConfigurationAndRestartTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIDisassemblyTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIDisassemblyTest_7_11.java deleted file mode 100644 index 94e5f13ed71..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIDisassemblyTest_7_11.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.MIDisassemblyTest_7_10; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_11 extends MIDisassemblyTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsNonStopTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsNonStopTest_7_11.java deleted file mode 100644 index ec3f42eff4d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsNonStopTest_7_11.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_11 extends MIExpressionsTest_7_11 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsTest_7_11.java deleted file mode 100644 index d07f1a10377..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIExpressionsTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.MIExpressionsTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_11 extends MIExpressionsTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIMemoryTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIMemoryTest_7_11.java deleted file mode 100644 index 5e4eb3a278b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIMemoryTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.MIMemoryTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_11 extends MIMemoryTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlNonStopTargetAvailableTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlNonStopTargetAvailableTest_7_11.java deleted file mode 100644 index ec9eeb75847..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlNonStopTargetAvailableTest_7_11.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_11 extends MIRunControlTargetAvailableTest_7_11 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTargetAvailableTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTargetAvailableTest_7_11.java deleted file mode 100644 index 6069ea1fb04..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTargetAvailableTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.MIRunControlTargetAvailableTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_11 extends MIRunControlTargetAvailableTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTest_7_11.java deleted file mode 100644 index 4d803b5900f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/MIRunControlTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.MIRunControlTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_11 extends MIRunControlTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningNonStopTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningNonStopTest_7_11.java deleted file mode 100644 index 58cb9fa447e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningNonStopTest_7_11.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_11 extends OperationsWhileTargetIsRunningTest_7_11 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningTest_7_11.java deleted file mode 100644 index 06cc814a682..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/OperationsWhileTargetIsRunningTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.OperationsWhileTargetIsRunningTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_11 extends OperationsWhileTargetIsRunningTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/PostMortemCoreTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/PostMortemCoreTest_7_11.java deleted file mode 100644 index 08b53a06724..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/PostMortemCoreTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.PostMortemCoreTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_11 extends PostMortemCoreTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/SourceLookupTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/SourceLookupTest_7_11.java deleted file mode 100644 index f663364de0d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/SourceLookupTest_7_11.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.SourceLookupTest_7_10; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_11 extends SourceLookupTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionNonStopTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionNonStopTest_7_11.java deleted file mode 100644 index 6ad3ad4832e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionNonStopTest_7_11.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_11 extends StepIntoSelectionTest_7_11 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionTest_7_11.java deleted file mode 100644 index ad757a6ab16..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/StepIntoSelectionTest_7_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.StepIntoSelectionTest_7_10; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_11 extends StepIntoSelectionTest_7_10 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_7_11.java deleted file mode 100644 index 499a13a944a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_7_11.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_11. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_11.class, - MIRunControlTargetAvailableTest_7_11.class, - MIRunControlNonStopTargetAvailableTest_7_11.class, - MIExpressionsTest_7_11.class, - MIExpressionsNonStopTest_7_11.class, - GDBPatternMatchingExpressionsTest_7_11.class, - MIMemoryTest_7_11.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_11.class, - GDBProcessesTest_7_11.class, - LaunchConfigurationAndRestartTest_7_11.class, - OperationsWhileTargetIsRunningTest_7_11.class, - OperationsWhileTargetIsRunningNonStopTest_7_11.class, - PostMortemCoreTest_7_11.class, - CommandTimeoutTest_7_11.class, - GDBMultiNonStopRunControlTest_7_11.class, - GDBConsoleBreakpointsTest_7_11.class, - GDBConsoleSynchronizingTest_7_11.class, - StepIntoSelectionTest_7_11.class, - StepIntoSelectionNonStopTest_7_11.class, - SourceLookupTest_7_11.class, - /* Add your test class here */ -}) - -public class Suite_7_11 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_Remote_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_Remote_7_11.java deleted file mode 100644 index a1fe926dc2b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/Suite_Remote_7_11.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_11 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_11.class, - GDBRemoteTracepointsTest_7_11.class, - MIRegistersTest.class, - MIRunControlTest_7_11.class, - MIRunControlTargetAvailableTest_7_11.class, - MIRunControlNonStopTargetAvailableTest_7_11.class, - MIExpressionsTest_7_11.class, - MIExpressionsNonStopTest_7_11.class, - GDBPatternMatchingExpressionsTest_7_11.class, - MIMemoryTest_7_11.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_11.class, - GDBProcessesTest_7_11.class, - OperationsWhileTargetIsRunningTest_7_11.class, - OperationsWhileTargetIsRunningNonStopTest_7_11.class, - CommandTimeoutTest_7_11.class, - GDBConsoleBreakpointsTest_7_11.class, - TraceFileTest_7_11.class, - GDBConsoleSynchronizingTest_7_11.class, - StepIntoSelectionTest_7_11.class, - StepIntoSelectionNonStopTest_7_11.class, - SourceLookupTest_7_11.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_11 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/TraceFileTest_7_11.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/TraceFileTest_7_11.java deleted file mode 100644 index d47392b06b3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_11/TraceFileTest_7_11.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_11; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10.TraceFileTest_7_10; - -public class TraceFileTest_7_11 extends TraceFileTest_7_10 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_11); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/CommandTimeoutTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/CommandTimeoutTest_7_2.java deleted file mode 100644 index a32ead80d0f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/CommandTimeoutTest_7_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.CommandTimeoutTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_2 extends CommandTimeoutTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBMultiNonStopRunControlTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBMultiNonStopRunControlTest_7_2.java deleted file mode 100644 index 696ab80268f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBMultiNonStopRunControlTest_7_2.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.GDBMultiNonStopRunControlTest_7_1; -import org.junit.runner.RunWith; - - -/** - * Tests IMultiRunControl class for Non-stop multi-threaded application. - */ -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_2 extends GDBMultiNonStopRunControlTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBPatternMatchingExpressionsTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBPatternMatchingExpressionsTest_7_2.java deleted file mode 100644 index 0dffc7c628f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBPatternMatchingExpressionsTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.GDBPatternMatchingExpressionsTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_2 extends GDBPatternMatchingExpressionsTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBProcessesTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBProcessesTest_7_2.java deleted file mode 100644 index 8b85d4eb36c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBProcessesTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.GDBProcessesTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_2 extends GDBProcessesTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBRemoteTracepointsTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBRemoteTracepointsTest_7_2.java deleted file mode 100644 index 0cce2c6d00b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/GDBRemoteTracepointsTest_7_2.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.GDBRemoteTracepointsTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_2 extends GDBRemoteTracepointsTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } - - @Override - protected boolean fastTracepointsSupported() { return true; } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/LaunchConfigurationAndRestartTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/LaunchConfigurationAndRestartTest_7_2.java deleted file mode 100644 index b7f5d16410f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/LaunchConfigurationAndRestartTest_7_2.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Simon Marchi (Ericsson) - Disable some tests for gdb < 7.2. - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.LaunchConfigurationAndRestartTest_7_1; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_2 extends LaunchConfigurationAndRestartTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testStopAtMainWithReverse() throws Throwable { - super.testStopAtMainWithReverse(); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testStopAtMainWithReverseRestart() throws Throwable { - super.testStopAtMainWithReverseRestart(); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testStopAtOtherWithReverse() throws Throwable { - super.testStopAtOtherWithReverse(); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testStopAtOtherWithReverseRestart() throws Throwable { - super.testStopAtOtherWithReverseRestart(); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testSourceGdbInit() throws Throwable { - super.testSourceGdbInit(); - } - - /** - * Enable the test for gdb 7.2 and upwards. - */ - @Test - @Override - public void testSourceGdbInitRestart() throws Throwable { - super.testSourceGdbInitRestart(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIDisassemblyTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIDisassemblyTest_7_2.java deleted file mode 100644 index 5444413e992..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIDisassemblyTest_7_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.MIDisassemblyTest_7_1; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_2 extends MIDisassemblyTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsNonStopTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsNonStopTest_7_2.java deleted file mode 100644 index 0d98f84bdca..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsNonStopTest_7_2.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_2 extends MIExpressionsTest_7_2 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsTest_7_2.java deleted file mode 100644 index ae3fd2a7232..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIExpressionsTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.MIExpressionsTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_2 extends MIExpressionsTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIMemoryTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIMemoryTest_7_2.java deleted file mode 100644 index 30e65bea438..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIMemoryTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.MIMemoryTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_2 extends MIMemoryTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlNonStopTargetAvailableTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlNonStopTargetAvailableTest_7_2.java deleted file mode 100644 index 047c097da95..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlNonStopTargetAvailableTest_7_2.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_2 extends MIRunControlTargetAvailableTest_7_2 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTargetAvailableTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTargetAvailableTest_7_2.java deleted file mode 100644 index fe118f0d30d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTargetAvailableTest_7_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.MIRunControlTargetAvailableTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_2 extends MIRunControlTargetAvailableTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTest_7_2.java deleted file mode 100644 index 1614ae7c576..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/MIRunControlTest_7_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.MIRunControlTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_2 extends MIRunControlTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningNonStopTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningNonStopTest_7_2.java deleted file mode 100644 index f3a2205cb73..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningNonStopTest_7_2.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_2 extends OperationsWhileTargetIsRunningTest_7_2 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningTest_7_2.java deleted file mode 100644 index 89a6aea4c6f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/OperationsWhileTargetIsRunningTest_7_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.OperationsWhileTargetIsRunningTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_2 extends OperationsWhileTargetIsRunningTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/PostMortemCoreTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/PostMortemCoreTest_7_2.java deleted file mode 100644 index 79b84f5b967..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/PostMortemCoreTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.PostMortemCoreTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_2 extends PostMortemCoreTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/SourceLookupTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/SourceLookupTest_7_2.java deleted file mode 100644 index 8028873d358..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/SourceLookupTest_7_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.SourceLookupTest_7_1; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_2 extends SourceLookupTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionTest_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionTest_7_2.java deleted file mode 100644 index debb63c0a6e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/StepIntoSelectionTest_7_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.StepIntoSelectionTest_7_1; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_2 extends StepIntoSelectionTest_7_1 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_7_2.java deleted file mode 100644 index f68d08224b1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_7_2.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.2 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_2.class, - MIRunControlTargetAvailableTest_7_2.class, - MIRunControlNonStopTargetAvailableTest_7_2.class, - MIExpressionsTest_7_2.class, - MIExpressionsNonStopTest_7_2.class, - GDBPatternMatchingExpressionsTest_7_2.class, - MIMemoryTest_7_2.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_2.class, - GDBProcessesTest_7_2.class, - LaunchConfigurationAndRestartTest_7_2.class, - OperationsWhileTargetIsRunningTest_7_2.class, - OperationsWhileTargetIsRunningNonStopTest_7_2.class, - PostMortemCoreTest_7_2.class, - CommandTimeoutTest_7_2.class, - GDBMultiNonStopRunControlTest_7_2.class, - StepIntoSelectionTest_7_2.class, - StepIntoSelectionNonStopTest_7_2.class, - SourceLookupTest_7_2.class, - /* Add your test class here */ -}) - -public class Suite_7_2 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_Remote_7_2.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_Remote_7_2.java deleted file mode 100644 index 62c57416dc5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_2/Suite_Remote_7_2.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.2 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_2.class, - MIRegistersTest.class, - MIRunControlTest_7_2.class, - MIRunControlTargetAvailableTest_7_2.class, - MIRunControlNonStopTargetAvailableTest_7_2.class, - MIExpressionsTest_7_2.class, - MIExpressionsNonStopTest_7_2.class, - GDBPatternMatchingExpressionsTest_7_2.class, - MIMemoryTest_7_2.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_2.class, - GDBProcessesTest_7_2.class, - OperationsWhileTargetIsRunningTest_7_2.class, - OperationsWhileTargetIsRunningNonStopTest_7_2.class, - CommandTimeoutTest_7_2.class, - GDBMultiNonStopRunControlTest_7_2.class, - StepIntoSelectionTest_7_2.class, - StepIntoSelectionNonStopTest_7_2.class, - SourceLookupTest_7_2.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_2 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/CommandTimeoutTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/CommandTimeoutTest_7_3.java deleted file mode 100644 index 601209e734a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/CommandTimeoutTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.CommandTimeoutTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_3 extends CommandTimeoutTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBMultiNonStopRunControlTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBMultiNonStopRunControlTest_7_3.java deleted file mode 100644 index 6c5e2c53d1c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBMultiNonStopRunControlTest_7_3.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.GDBMultiNonStopRunControlTest_7_2; -import org.junit.runner.RunWith; - - -/** - * Tests IMultiRunControl class for Non-stop multi-threaded application. - */ -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_3 extends GDBMultiNonStopRunControlTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBPatternMatchingExpressionsTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBPatternMatchingExpressionsTest_7_3.java deleted file mode 100644 index 0b3ef26299f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBPatternMatchingExpressionsTest_7_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.GDBPatternMatchingExpressionsTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_3 extends GDBPatternMatchingExpressionsTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBProcessesTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBProcessesTest_7_3.java deleted file mode 100644 index 117cbaa1f3f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBProcessesTest_7_3.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - * Simon Marchi (Ericsson) - Check for thread name support. - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.GDBProcessesTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_3 extends GDBProcessesTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } - - @Override - protected boolean threadNamesSupported() { - // Thread names are reported starting with gdb 7.3, except on Windows - // and not for remote sessions. - return !runningOnWindows() && !isRemoteSession(); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBRemoteTracepointsTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBRemoteTracepointsTest_7_3.java deleted file mode 100644 index 0cc6f5a769e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/GDBRemoteTracepointsTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.GDBRemoteTracepointsTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_3 extends GDBRemoteTracepointsTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/LaunchConfigurationAndRestartTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/LaunchConfigurationAndRestartTest_7_3.java deleted file mode 100644 index 2c0b26e0f1c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/LaunchConfigurationAndRestartTest_7_3.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.LaunchConfigurationAndRestartTest_7_2; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_3 extends LaunchConfigurationAndRestartTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } - - // Enabled starting with GDB 7.3 - @Override - @Test - public void testExitCodeSet() throws Throwable { - super.testExitCodeSet(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIDisassemblyTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIDisassemblyTest_7_3.java deleted file mode 100644 index e19a04e7672..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIDisassemblyTest_7_3.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.MIDisassemblyTest_7_2; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_3 extends MIDisassemblyTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsNonStopTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsNonStopTest_7_3.java deleted file mode 100644 index ffc57904670..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsNonStopTest_7_3.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_3 extends MIExpressionsTest_7_3 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsTest_7_3.java deleted file mode 100644 index 133229282b2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIExpressionsTest_7_3.java +++ /dev/null @@ -1,171 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Marc Khouzam (Ericsson) - Modify testDeleteChildren() for GDB output - * change (Bug 320277) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import static org.junit.Assert.assertTrue; - -import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor; -import org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMContext; -import org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMData; -import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType; -import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext; -import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; -import org.eclipse.cdt.tests.dsf.gdb.framework.AsyncCompletionWaitor; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; -import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.MIExpressionsTest_7_2; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_3 extends MIExpressionsTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } - - // Slight change in GDB output to fix a bug, so we must change the test a little - // Bug 320277 - @Override - @Test - public void testDeleteChildren() throws Throwable { - SyncUtil.runToLocation("testDeleteChildren"); - MIStoppedEvent stoppedEvent = SyncUtil.step(1, StepType.STEP_OVER); - final IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); - - final AsyncCompletionWaitor wait = new AsyncCompletionWaitor(); - - fExpService.getExecutor().submit(new Runnable() { - @Override - public void run() { - - // First create the var object and all its children - IExpressionDMContext parentDmc = fExpService.createExpression(frameDmc, "f"); - - fExpService.getSubExpressions( - parentDmc, - new DataRequestMonitor(fExpService.getExecutor(), null) { - @Override - protected void handleCompleted() { - if (!isSuccess()) { - wait.waitFinished(getStatus()); - } else { - if (getData().length != 5) { - wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, - "Failed getting children; expecting 5 got " + getData().length, null)); - } else { - String childStr = "((class bar) f)"; - if (!getData()[0].getExpression().equals(childStr)) { - wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, - "Got child " + getData()[0].getExpression() + " instead of " + childStr, null)); - } else { - // Now list the children of the first element - fExpService.getSubExpressions( - getData()[0], - new DataRequestMonitor(fExpService.getExecutor(), null) { - @Override - protected void handleCompleted() { - if (!isSuccess()) { - wait.waitFinished(getStatus()); - } else { - if (getData().length != 2) { - wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, - "Failed getting children; expecting 2 got " + getData().length, null)); - } else { - String childStr = "((((class bar) f)).d)"; - if (!getData()[0].getExpression().equals(childStr)) { - wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, - "Got child " + getData()[0].getExpression() + " instead of " + childStr, null)); - } else { - wait.setReturnInfo(getData()[0]); - wait.waitFinished(); - } - } - } - } - }); - } - } - } - } - }); - } - }); - - wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); - assertTrue(wait.getMessage(), wait.isOK()); - final IExpressionDMContext deletedChildDmc = (IExpressionDMContext)wait.getReturnInfo(); - - wait.waitReset(); - - fExpService.getExecutor().submit(new Runnable() { - @Override - public void run() { - - // Now create more than 1000 expressions to trigger the deletion of the children - // that were created above - for (int i=0; i<1100; i++) { - IExpressionDMContext dmc = fExpService.createExpression(frameDmc, "a[" + i + "]"); - - wait.increment(); - fExpService.getExpressionData( - dmc, - new DataRequestMonitor(fExpService.getExecutor(), null) { - @Override - protected void handleCompleted() { - if (!isSuccess()) { - wait.waitFinished(getStatus()); - } else { - wait.waitFinished(); - } - } - }); - } - } - }); - - wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); - assertTrue(wait.getMessage(), wait.isOK()); - wait.waitReset(); - - fExpService.getExecutor().submit(new Runnable() { - @Override - public void run() { - - // Evaluate the expression of a child that we know is deleted to make sure - // the expression service can handle that - fExpService.getExpressionData( - deletedChildDmc, - new DataRequestMonitor(fExpService.getExecutor(), null) { - @Override - protected void handleCompleted() { - if (!isSuccess()) { - wait.waitFinished(getStatus()); - } else { - wait.waitFinished(); - } - } - }); - } - }); - - wait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); - assertTrue(wait.getMessage(), wait.isOK()); - wait.waitReset(); - - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIMemoryTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIMemoryTest_7_3.java deleted file mode 100644 index ca799f2abf9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIMemoryTest_7_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.MIMemoryTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_3 extends MIMemoryTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlNonStopTargetAvailableTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlNonStopTargetAvailableTest_7_3.java deleted file mode 100644 index 548df30d6ce..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlNonStopTargetAvailableTest_7_3.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_3 extends MIRunControlTargetAvailableTest_7_3 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTargetAvailableTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTargetAvailableTest_7_3.java deleted file mode 100644 index 94c4deb0c26..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTargetAvailableTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.MIRunControlTargetAvailableTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_3 extends MIRunControlTargetAvailableTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTest_7_3.java deleted file mode 100644 index a919b9f8f8b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/MIRunControlTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.MIRunControlTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_3 extends MIRunControlTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningNonStopTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningNonStopTest_7_3.java deleted file mode 100644 index 892ca9c8f4e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningNonStopTest_7_3.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_3 extends OperationsWhileTargetIsRunningTest_7_3 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningTest_7_3.java deleted file mode 100644 index bb21fc690d0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/OperationsWhileTargetIsRunningTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson AB - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.OperationsWhileTargetIsRunningTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_3 extends OperationsWhileTargetIsRunningTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/PostMortemCoreTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/PostMortemCoreTest_7_3.java deleted file mode 100644 index fe6d2548348..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/PostMortemCoreTest_7_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.PostMortemCoreTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_3 extends PostMortemCoreTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/SourceLookupTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/SourceLookupTest_7_3.java deleted file mode 100644 index d2c4e2e4d9e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/SourceLookupTest_7_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.SourceLookupTest_7_2; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_3 extends SourceLookupTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionNonStopTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionNonStopTest_7_3.java deleted file mode 100644 index 4fafbe58b7d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionNonStopTest_7_3.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_3 extends StepIntoSelectionTest_7_3 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionTest_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionTest_7_3.java deleted file mode 100644 index cd2113dd859..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/StepIntoSelectionTest_7_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.StepIntoSelectionTest_7_2; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_3 extends StepIntoSelectionTest_7_2 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_7_3.java deleted file mode 100644 index 3ece06eff21..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_7_3.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.3 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_3.class, - MIRunControlTargetAvailableTest_7_3.class, - MIRunControlNonStopTargetAvailableTest_7_3.class, - MIExpressionsTest_7_3.class, - MIExpressionsNonStopTest_7_3.class, - GDBPatternMatchingExpressionsTest_7_3.class, - MIMemoryTest_7_3.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_3.class, - GDBProcessesTest_7_3.class, - LaunchConfigurationAndRestartTest_7_3.class, - OperationsWhileTargetIsRunningTest_7_3.class, - OperationsWhileTargetIsRunningNonStopTest_7_3.class, - PostMortemCoreTest_7_3.class, - CommandTimeoutTest_7_3.class, - GDBMultiNonStopRunControlTest_7_3.class, - StepIntoSelectionTest_7_3.class, - StepIntoSelectionNonStopTest_7_3.class, - SourceLookupTest_7_3.class, - /* Add your test class here */ -}) - -public class Suite_7_3 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_Remote_7_3.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_Remote_7_3.java deleted file mode 100644 index e34e2cbc935..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_3/Suite_Remote_7_3.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ericsson - Initial Implementation - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.3 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_3.class, - MIRegistersTest.class, - MIRunControlTest_7_3.class, - MIRunControlTargetAvailableTest_7_3.class, - MIRunControlNonStopTargetAvailableTest_7_3.class, - MIExpressionsTest_7_3.class, - MIExpressionsNonStopTest_7_3.class, - GDBPatternMatchingExpressionsTest_7_3.class, - MIMemoryTest_7_3.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_3.class, - GDBProcessesTest_7_3.class, - OperationsWhileTargetIsRunningTest_7_3.class, - OperationsWhileTargetIsRunningNonStopTest_7_3.class, - CommandTimeoutTest_7_3.class, - GDBMultiNonStopRunControlTest_7_3.class, - StepIntoSelectionTest_7_3.class, - StepIntoSelectionNonStopTest_7_3.class, - SourceLookupTest_7_3.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_3 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/CommandTimeoutTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/CommandTimeoutTest_7_4.java deleted file mode 100644 index 36ce2f25420..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/CommandTimeoutTest_7_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.CommandTimeoutTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_4 extends CommandTimeoutTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBConsoleBreakpointsTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBConsoleBreakpointsTest_7_4.java deleted file mode 100644 index 17be614a36f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBConsoleBreakpointsTest_7_4.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.tests.GDBConsoleBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; - -public class GDBConsoleBreakpointsTest_7_4 extends GDBConsoleBreakpointsTest { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBMultiNonStopRunControlTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBMultiNonStopRunControlTest_7_4.java deleted file mode 100644 index 7e05ca6794b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBMultiNonStopRunControlTest_7_4.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.GDBMultiNonStopRunControlTest_7_3; -import org.junit.runner.RunWith; - - -/** - * Tests IMultiRunControl class for Non-stop multi-threaded application. - */ -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_4 extends GDBMultiNonStopRunControlTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBPatternMatchingExpressionsTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBPatternMatchingExpressionsTest_7_4.java deleted file mode 100644 index 4852c5f2831..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBPatternMatchingExpressionsTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.GDBPatternMatchingExpressionsTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_4 extends GDBPatternMatchingExpressionsTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBProcessesTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBProcessesTest_7_4.java deleted file mode 100644 index bb5e4c0212d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBProcessesTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.GDBProcessesTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_4 extends GDBProcessesTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} \ No newline at end of file diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBRemoteTracepointsTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBRemoteTracepointsTest_7_4.java deleted file mode 100644 index cd6529fdd0c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/GDBRemoteTracepointsTest_7_4.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.CollectAction; -import org.eclipse.cdt.dsf.gdb.internal.tracepointactions.TracepointActionManager; -import org.eclipse.cdt.dsf.mi.service.MIBreakpoints; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.GDBRemoteTracepointsTest_7_3; -import org.eclipse.core.runtime.Platform; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_4 extends GDBRemoteTracepointsTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } - - @Override - protected boolean acceptsFastTpOnFourBytes() { - // With GDB 7.4, fast tracepoints only need an - // instruction of 4 bytes or more when on a 32bit architecture, instead of 5. - if (Platform.getOS().equals(Platform.ARCH_X86)) { - return true; - } - return false; - } - - /** - * This test sets the different types of tracepoints and then sets some string collection actions - */ - @Test - public void tracepointActionsWithCollectStrings() throws Throwable { - TracepointActionManager tracepointActionMgr = TracepointActionManager.getInstance(); - - CollectAction action1 = new CollectAction(); - action1.setCollectString("/s $locals"); - action1.setName("Collect string locals"); - tracepointActionMgr.addAction(action1); - - CollectAction action2 = new CollectAction(); - action2.setCollectString("/s3 $locals, $reg"); - action2.setName("Collect string locals, reg"); - tracepointActionMgr.addAction(action2); - - createTracepoints(); - - Map delta = new HashMap(); - // Set conditions for all tracepoints - delta.put(MIBreakpoints.COMMANDS, action1.getName()); - updateBreakpoint(fTracepoints[0], delta); - delta.put(MIBreakpoints.COMMANDS, action2.getName()); - updateBreakpoint(fTracepoints[1], delta); - delta.put(MIBreakpoints.COMMANDS, action1.getName()); - updateBreakpoint(fTracepoints[2], delta); - delta.put(MIBreakpoints.COMMANDS, action1.getName()); - updateBreakpoint(fTracepoints[3], delta); - delta.put(MIBreakpoints.COMMANDS, action2.getName()); - updateBreakpoint(fTracepoints[4], delta); - - TracepointData[] dataArray = new TracepointData[] { - new TracepointData(LINE_NUMBER_1_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), false), - new TracepointData(LINE_NUMBER_2_BYTE_INSTR, NO_CONDITION, 0, true, action2.toString(), false), - new TracepointData(LINE_NUMBER_3_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), false), - new TracepointData(LINE_NUMBER_4_BYTE_INSTR, NO_CONDITION, 0, true, action1.toString(), acceptsFastTpOnFourBytes()), - new TracepointData(LINE_NUMBER_5_BYTE_INSTR, NO_CONDITION, 0, true, action2.toString(), true), - }; - - checkTracepoints(dataArray); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/LaunchConfigurationAndRestartTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/LaunchConfigurationAndRestartTest_7_4.java deleted file mode 100644 index 55b9c0491fd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/LaunchConfigurationAndRestartTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.LaunchConfigurationAndRestartTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_4 extends LaunchConfigurationAndRestartTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIDisassemblyTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIDisassemblyTest_7_4.java deleted file mode 100644 index 495c1ec14d2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIDisassemblyTest_7_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.MIDisassemblyTest_7_3; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_4 extends MIDisassemblyTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsNonStopTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsNonStopTest_7_4.java deleted file mode 100644 index fd31d76fd16..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsNonStopTest_7_4.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_4 extends MIExpressionsTest_7_4 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsTest_7_4.java deleted file mode 100644 index e6d83a9b387..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIExpressionsTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.MIExpressionsTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_4 extends MIExpressionsTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIMemoryTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIMemoryTest_7_4.java deleted file mode 100644 index 057a6a574df..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIMemoryTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.MIMemoryTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_4 extends MIMemoryTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlNonStopTargetAvailableTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlNonStopTargetAvailableTest_7_4.java deleted file mode 100644 index 6ac6be458cf..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlNonStopTargetAvailableTest_7_4.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_4 extends MIRunControlTargetAvailableTest_7_4 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTargetAvailableTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTargetAvailableTest_7_4.java deleted file mode 100644 index c30b9e99f26..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTargetAvailableTest_7_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.MIRunControlTargetAvailableTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_4 extends MIRunControlTargetAvailableTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTest_7_4.java deleted file mode 100644 index 15e6305fc6a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIRunControlTest_7_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.MIRunControlTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_4 extends MIRunControlTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningNonStopTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningNonStopTest_7_4.java deleted file mode 100644 index 47ae5b3398a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningNonStopTest_7_4.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_4 extends OperationsWhileTargetIsRunningTest_7_4 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningTest_7_4.java deleted file mode 100644 index c68e26b8b2b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/OperationsWhileTargetIsRunningTest_7_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.OperationsWhileTargetIsRunningTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_4 extends OperationsWhileTargetIsRunningTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/PostMortemCoreTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/PostMortemCoreTest_7_4.java deleted file mode 100644 index b9a3d934c68..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/PostMortemCoreTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.PostMortemCoreTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_4 extends PostMortemCoreTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/SourceLookupTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/SourceLookupTest_7_4.java deleted file mode 100644 index f32db8da339..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/SourceLookupTest_7_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.SourceLookupTest_7_3; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_4 extends SourceLookupTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionNonStopTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionNonStopTest_7_4.java deleted file mode 100644 index 7d4ed421eb9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionNonStopTest_7_4.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_4 extends StepIntoSelectionTest_7_4 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionTest_7_4.java deleted file mode 100644 index 69a475bed20..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/StepIntoSelectionTest_7_4.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - * Simon Marchi (Ericsson) - Fix atDoubleMethod* tests for older gdb (<= 7.3) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.StepIntoSelectionTest_7_3; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_4 extends StepIntoSelectionTest_7_3 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - } - - /** - * Enable test for gdb >= 7.4. - */ - @Override - @Test - public void atDoubleMethodStopAtBreakpointFunctionEntry() throws Throwable { - super.atDoubleMethodStopAtBreakpointFunctionEntry(); - } - - /** - * Enable test for gdb >= 7.4. - */ - @Override - @Test - public void atDoubleMethodSkipBreakpointFunctionEntry() throws Throwable { - super.atDoubleMethodSkipBreakpointFunctionEntry(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_7_4.java deleted file mode 100644 index 34dafe6abd6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_7_4.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.4. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_4.class, - MIRunControlTargetAvailableTest_7_4.class, - MIRunControlNonStopTargetAvailableTest_7_4.class, - MIExpressionsTest_7_4.class, - MIExpressionsNonStopTest_7_4.class, - GDBPatternMatchingExpressionsTest_7_4.class, - MIMemoryTest_7_4.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_4.class, - GDBProcessesTest_7_4.class, - LaunchConfigurationAndRestartTest_7_4.class, - OperationsWhileTargetIsRunningTest_7_4.class, - OperationsWhileTargetIsRunningNonStopTest_7_4.class, - PostMortemCoreTest_7_4.class, - CommandTimeoutTest_7_4.class, - GDBMultiNonStopRunControlTest_7_4.class, - GDBConsoleBreakpointsTest_7_4.class, - StepIntoSelectionTest_7_4.class, - StepIntoSelectionNonStopTest_7_4.class, - SourceLookupTest_7_4.class, - /* Add your test class here */ -}) - -public class Suite_7_4 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_Remote_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_Remote_7_4.java deleted file mode 100644 index f8004e349a6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/Suite_Remote_7_4.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.4 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_4.class, - MIRegistersTest.class, - MIRunControlTest_7_4.class, - MIRunControlTargetAvailableTest_7_4.class, - MIRunControlNonStopTargetAvailableTest_7_4.class, - MIExpressionsTest_7_4.class, - MIExpressionsNonStopTest_7_4.class, - GDBPatternMatchingExpressionsTest_7_4.class, - MIMemoryTest_7_4.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_4.class, - GDBProcessesTest_7_4.class, - OperationsWhileTargetIsRunningTest_7_4.class, - OperationsWhileTargetIsRunningNonStopTest_7_4.class, - CommandTimeoutTest_7_4.class, - GDBMultiNonStopRunControlTest_7_4.class, - GDBConsoleBreakpointsTest_7_4.class, - TraceFileTest_7_4.class, - StepIntoSelectionTest_7_4.class, - StepIntoSelectionNonStopTest_7_4.class, - SourceLookupTest_7_4.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_4 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/CommandTimeoutTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/CommandTimeoutTest_7_5.java deleted file mode 100644 index 8b5a839f352..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/CommandTimeoutTest_7_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.CommandTimeoutTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_5 extends CommandTimeoutTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBConsoleBreakpointsTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBConsoleBreakpointsTest_7_5.java deleted file mode 100644 index c5900d59827..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBConsoleBreakpointsTest_7_5.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.GDBConsoleBreakpointsTest_7_4; - -public class GDBConsoleBreakpointsTest_7_5 extends GDBConsoleBreakpointsTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBMultiNonStopRunControlTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBMultiNonStopRunControlTest_7_5.java deleted file mode 100644 index 3cbda717092..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBMultiNonStopRunControlTest_7_5.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.GDBMultiNonStopRunControlTest_7_4; -import org.junit.runner.RunWith; - - -/** - * Tests IMultiRunControl class for Non-stop multi-threaded application. - */ -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_5 extends GDBMultiNonStopRunControlTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBPatternMatchingExpressionsTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBPatternMatchingExpressionsTest_7_5.java deleted file mode 100644 index 0c47453ffc9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBPatternMatchingExpressionsTest_7_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.GDBPatternMatchingExpressionsTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_5 extends GDBPatternMatchingExpressionsTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBProcessesTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBProcessesTest_7_5.java deleted file mode 100644 index 014c4f1b2ca..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBProcessesTest_7_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.GDBProcessesTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_5 extends GDBProcessesTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBRemoteTracepointsTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBRemoteTracepointsTest_7_5.java deleted file mode 100644 index a3c42fda4af..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/GDBRemoteTracepointsTest_7_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.GDBRemoteTracepointsTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_5 extends GDBRemoteTracepointsTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/LaunchConfigurationAndRestartTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/LaunchConfigurationAndRestartTest_7_5.java deleted file mode 100644 index 00a65d573df..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/LaunchConfigurationAndRestartTest_7_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.LaunchConfigurationAndRestartTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_5 extends LaunchConfigurationAndRestartTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIDisassemblyTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIDisassemblyTest_7_5.java deleted file mode 100644 index bca63c55f2f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIDisassemblyTest_7_5.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.MIDisassemblyTest_7_4; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_5 extends MIDisassemblyTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsNonStopTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsNonStopTest_7_5.java deleted file mode 100644 index 0b451e46e19..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsNonStopTest_7_5.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_5 extends MIExpressionsTest_7_5 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsTest_7_5.java deleted file mode 100644 index 1b5093474df..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIExpressionsTest_7_5.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Simon Marchi (Ericsson) - Adapt to name change of assertChildrenCount - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMContext; -import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType; -import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext; -import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.MIExpressionsTest_7_4; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_5 extends MIExpressionsTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } - - /** - * This test verifies that there is proper RTTI support starting with GDB 7.5. - */ - @Override - @Test - public void testRTTI() throws Throwable { - SyncUtil.runToLocation("testRTTI"); - MIStoppedEvent stoppedEvent = SyncUtil.step(3, StepType.STEP_OVER); - IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0); - - // The expression we will follow as it changes types: derived.ptr - IExpressionDMContext exprDmc = SyncUtil.createExpression(frameDmc, "derived.ptr"); - - // Now, the expression should be type VirtualBase - getExpressionType(exprDmc, "VirtualBase *"); - assertChildrenCount(exprDmc, 2); - // get all children - String[] expectedValues = new String[2]; - expectedValues[0] = "a"; - expectedValues[1] = "b"; - getChildren(exprDmc, expectedValues); - - // Make the type of our expression change - SyncUtil.step(1, StepType.STEP_OVER); - // Now, the expression should be type Derived - getExpressionType(exprDmc, "Derived *"); - assertChildrenCount(exprDmc, 5); - // get all children - expectedValues = new String[5]; - expectedValues[0] = "VirtualBase"; - expectedValues[1] = "c"; - expectedValues[2] = "ptr"; - expectedValues[3] = "d"; - expectedValues[4] = "e"; - getChildren(exprDmc, expectedValues); - - // Make the type of our expression change - SyncUtil.step(1, StepType.STEP_OVER); - // Now, the expression should be type OtherDerived - getExpressionType(exprDmc, "OtherDerived *"); - assertChildrenCount(exprDmc, 4); - // get all children - expectedValues = new String[4]; - expectedValues[0] = "VirtualBase"; - expectedValues[1] = "d"; - expectedValues[2] = "c"; - expectedValues[3] = "f"; - getChildren(exprDmc, expectedValues); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIMemoryTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIMemoryTest_7_5.java deleted file mode 100644 index 14c3dd323fc..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIMemoryTest_7_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.MIMemoryTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_5 extends MIMemoryTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlNonStopTargetAvailableTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlNonStopTargetAvailableTest_7_5.java deleted file mode 100644 index 94c7bb2c532..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlNonStopTargetAvailableTest_7_5.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_5 extends MIRunControlTargetAvailableTest_7_5 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTargetAvailableTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTargetAvailableTest_7_5.java deleted file mode 100644 index c6ca985e108..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTargetAvailableTest_7_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.MIRunControlTargetAvailableTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_5 extends MIRunControlTargetAvailableTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTest_7_5.java deleted file mode 100644 index 2505577aae4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/MIRunControlTest_7_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.MIRunControlTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_5 extends MIRunControlTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningNonStopTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningNonStopTest_7_5.java deleted file mode 100644 index c6a1910f670..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningNonStopTest_7_5.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_5 extends OperationsWhileTargetIsRunningTest_7_5 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningTest_7_5.java deleted file mode 100644 index 77cbaa6df07..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/OperationsWhileTargetIsRunningTest_7_5.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.OperationsWhileTargetIsRunningTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_5 extends OperationsWhileTargetIsRunningTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } - - @Override - public void detachWhileTargetRunningGDBAlive() throws Throwable { - if (isRemoteSession() && isRemoteDetachFailing()) { - return; - } - super.detachWhileTargetRunningGDBAlive(); - } - - @Override - public void detachWhileTargetRunningKillGDB() throws Throwable { - if (isRemoteSession() && isRemoteDetachFailing()) { - return; - } - super.detachWhileTargetRunningKillGDB(); - } - - public boolean isRemoteDetachFailing() { - // With GDB 7.5 in the remote case, the detach test - // case does not kill gdbserver which prevents the next - // testcase from passing. - return true; - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/PostMortemCoreTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/PostMortemCoreTest_7_5.java deleted file mode 100644 index bbf5fc9f8e4..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/PostMortemCoreTest_7_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.PostMortemCoreTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_5 extends PostMortemCoreTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/SourceLookupTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/SourceLookupTest_7_5.java deleted file mode 100644 index 078baec76a6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/SourceLookupTest_7_5.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2016 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.SourceLookupTest_7_4; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_5 extends SourceLookupTest_7_4 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } - - @Override - protected void setExeNames() { - EXEC_AC_NAME = "SourceLookupAC.exe"; //$NON-NLS-1$ - EXEC_AN_NAME = "SourceLookupAN.exe"; //$NON-NLS-1$ - EXEC_RC_NAME = "SourceLookupRC.exe"; //$NON-NLS-1$ - EXEC_RN_NAME = "SourceLookupRN.exe"; //$NON-NLS-1$ - EXEC_NAME = "SourceLookup.exe"; //$NON-NLS-1$ - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionNonStopTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionNonStopTest_7_5.java deleted file mode 100644 index cbe49e271f5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionNonStopTest_7_5.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_5 extends StepIntoSelectionTest_7_5 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionTest_7_5.java deleted file mode 100644 index ce8e826e032..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/StepIntoSelectionTest_7_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.StepIntoSelectionTest_7_4; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_5 extends StepIntoSelectionTest_7_4 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_7_5.java deleted file mode 100644 index a3eabdc3ded..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_7_5.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.5. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_5.class, - MIRegistersTest.class, - MIRunControlTest_7_5.class, - MIRunControlTargetAvailableTest_7_5.class, - MIRunControlNonStopTargetAvailableTest_7_5.class, - MIExpressionsTest_7_5.class, - MIExpressionsNonStopTest_7_5.class, - GDBPatternMatchingExpressionsTest_7_5.class, - MIMemoryTest_7_5.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_5.class, - GDBProcessesTest_7_5.class, - LaunchConfigurationAndRestartTest_7_5.class, - OperationsWhileTargetIsRunningTest_7_5.class, - OperationsWhileTargetIsRunningNonStopTest_7_5.class, - PostMortemCoreTest_7_5.class, - CommandTimeoutTest_7_5.class, - GDBConsoleBreakpointsTest_7_5.class, - StepIntoSelectionTest_7_5.class, - StepIntoSelectionNonStopTest_7_5.class, - SourceLookupTest_7_5.class, - /* Add your test class here */ -}) - -public class Suite_7_5 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_Remote_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_Remote_7_5.java deleted file mode 100644 index d3c33d8f907..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/Suite_Remote_7_5.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7.5 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBRemoteTracepointsTest_7_5.class, - MIRegistersTest.class, - MIRunControlTest_7_5.class, - MIRunControlTargetAvailableTest_7_5.class, - MIRunControlNonStopTargetAvailableTest_7_5.class, - MIExpressionsTest_7_5.class, - MIExpressionsNonStopTest_7_5.class, - GDBPatternMatchingExpressionsTest_7_5.class, - MIMemoryTest_7_5.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_5.class, - GDBProcessesTest_7_5.class, - OperationsWhileTargetIsRunningTest_7_5.class, - OperationsWhileTargetIsRunningNonStopTest_7_5.class, - CommandTimeoutTest_7_5.class, - GDBMultiNonStopRunControlTest_7_5.class, - GDBConsoleBreakpointsTest_7_5.class, - TraceFileTest_7_5.class, - StepIntoSelectionTest_7_5.class, - StepIntoSelectionNonStopTest_7_5.class, - SourceLookupTest_7_5.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_5 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/TraceFileTest_7_5.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/TraceFileTest_7_5.java deleted file mode 100644 index 451bd487f35..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_5/TraceFileTest_7_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.TraceFileTest_7_4; - -public class TraceFileTest_7_5 extends TraceFileTest_7_4 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/CommandTimeoutTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/CommandTimeoutTest_7_6.java deleted file mode 100644 index 3146acb81cb..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/CommandTimeoutTest_7_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.CommandTimeoutTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_6 extends CommandTimeoutTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleBreakpointsTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleBreakpointsTest_7_6.java deleted file mode 100644 index b9864b31d45..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBConsoleBreakpointsTest_7_6.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.GDBConsoleBreakpointsTest_7_5; - -public class GDBConsoleBreakpointsTest_7_6 extends GDBConsoleBreakpointsTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBMultiNonStopRunControlTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBMultiNonStopRunControlTest_7_6.java deleted file mode 100644 index a3e80bf3799..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBMultiNonStopRunControlTest_7_6.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.GDBMultiNonStopRunControlTest_7_5; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_6 extends GDBMultiNonStopRunControlTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBPatternMatchingExpressionsTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBPatternMatchingExpressionsTest_7_6.java deleted file mode 100644 index 3593e2ab9c7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBPatternMatchingExpressionsTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.GDBPatternMatchingExpressionsTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_6 extends GDBPatternMatchingExpressionsTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBProcessesTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBProcessesTest_7_6.java deleted file mode 100644 index 9bdf73ddfde..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBProcessesTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.GDBProcessesTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_6 extends GDBProcessesTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBRemoteTracepointsTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBRemoteTracepointsTest_7_6.java deleted file mode 100644 index c247022470b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/GDBRemoteTracepointsTest_7_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.GDBRemoteTracepointsTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_6 extends GDBRemoteTracepointsTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/LaunchConfigurationAndRestartTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/LaunchConfigurationAndRestartTest_7_6.java deleted file mode 100644 index 48dbad614db..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/LaunchConfigurationAndRestartTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.LaunchConfigurationAndRestartTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_6 extends LaunchConfigurationAndRestartTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIDisassemblyTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIDisassemblyTest_7_6.java deleted file mode 100644 index 6efeffa10c5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIDisassemblyTest_7_6.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.MIDisassemblyTest_7_5; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_6 extends MIDisassemblyTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsNonStopTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsNonStopTest_7_6.java deleted file mode 100644 index 80ba66d9b1c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsNonStopTest_7_6.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_6 extends MIExpressionsTest_7_6 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsTest_7_6.java deleted file mode 100644 index 5c09405395c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIExpressionsTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.MIExpressionsTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_6 extends MIExpressionsTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIMemoryTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIMemoryTest_7_6.java deleted file mode 100644 index 1ba40355ea0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIMemoryTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.MIMemoryTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_6 extends MIMemoryTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlNonStopTargetAvailableTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlNonStopTargetAvailableTest_7_6.java deleted file mode 100644 index 083a2668e02..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlNonStopTargetAvailableTest_7_6.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_6 extends MIRunControlTargetAvailableTest_7_6 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTargetAvailableTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTargetAvailableTest_7_6.java deleted file mode 100644 index b65109d5ca9..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTargetAvailableTest_7_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.MIRunControlTargetAvailableTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_6 extends MIRunControlTargetAvailableTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTest_7_6.java deleted file mode 100644 index 23497a3534a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/MIRunControlTest_7_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.MIRunControlTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_6 extends MIRunControlTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningNonStopTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningNonStopTest_7_6.java deleted file mode 100644 index aa72c9d8a98..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningNonStopTest_7_6.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_6 extends OperationsWhileTargetIsRunningTest_7_6 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningTest_7_6.java deleted file mode 100644 index d5d9f0975e2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/OperationsWhileTargetIsRunningTest_7_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.OperationsWhileTargetIsRunningTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_6 extends OperationsWhileTargetIsRunningTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } - - @Override - public boolean isRemoteDetachFailing() { - // This only fails for GDB 7.5 - return false; - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/PostMortemCoreTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/PostMortemCoreTest_7_6.java deleted file mode 100644 index 84e8b99172f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/PostMortemCoreTest_7_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.PostMortemCoreTest_7_5; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_6 extends PostMortemCoreTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/SourceLookupTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/SourceLookupTest_7_6.java deleted file mode 100644 index aef1faea24a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/SourceLookupTest_7_6.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2016 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.SourceLookupTest_7_5; -import org.eclipse.debug.core.sourcelookup.ISourceContainer; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_6 extends SourceLookupTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } - - /** - * Supported starting in GDB >= 7.6 because DSF is using the full path name - * to pass to the {@link ISourceContainer#findSourceElements(String)}. In - * versions prior to 7.6 the fullname field was not returned from GDB if the - * file was not found by GDB. See - * https://sourceware.org/ml/gdb-patches/2012-12/msg00557.html. - * - * Therefore in version < 7.5 the MI frame info has file="SourceLookup.cc" - * and no fullname field. This means there is no path to source map against. - * - * In version >= 7.6 the MI frame info has file="SourceLookup.cc",fullname= - * "/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc" - * fields, so there is a path to do the mapping against. Recall that the - * test maps - * "/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build" - * to "/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src" - */ - @Test - @Override - public void sourceMappingAC() throws Throwable { - super.sourceMappingAC(); - } - - /** - * For details, see {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Test - @Override - public void sourceMappingAN() throws Throwable { - super.sourceMappingAN(); - } - - /** - * For details, see {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Test - @Override - public void sourceMappingRC() throws Throwable { - super.sourceMappingRC(); - } - - /** - * For details, see {@link SourceLookupTest_7_6#sourceMappingAC()} - */ - @Test - @Override - public void sourceMappingRN() throws Throwable { - super.sourceMappingRN(); - } - - /** - * Support for inserting breakpoints on the build fullpath of a filename was - * added in GDB 7.6 along with other changes to fullname handling. (It was - * in 7.6 that fullname started being reported all the time, even if not - * resolved. See associated gdb/NEWS item: - * https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h= - * ec83d2110de6831ac2ed0e5a56dc33c60a477eb6 although you have to dig quite - * deep on these changes.) - */ - @Test - @Override - public void sourceMappingBreakpointsAC() throws Throwable { - super.sourceMappingBreakpointsAC(); - } - - /** - * For details, see - * {@link SourceLookupTest_7_6#sourceMappingBreakpointsAC()} - */ - @Test - @Override - public void sourceMappingBreakpointsRC() throws Throwable { - super.sourceMappingBreakpointsRC(); - } - - /** - * Not supported in GDB >= 7.6 because DSF is using the full path name to - * pass to the {@link ISourceContainer#findSourceElements(String)}. In - * versions prior to 7.6 the fullname field was not returned from GDB if the - * file was not found by GDB. See - * https://sourceware.org/ml/gdb-patches/2012-12/msg00557.html - * - * Therefore in version < 7.5 the MI frame info has file="SourceLookup.cc" - * and no fullname field. This means that "SourceLookup.cc" gets passed to - * DirectorySourceContainer.findSourceElements(String), the container - * prepends the directory name and finds the source. - * - * In version >= 7.6 the MI frame info has file="SourceLookup.cc",fullname= - * "/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc" - * As a result the fullname is passed to - * DirectorySourceContainer.findSourceElements(String), the container - * prepends the directory name and as a result does not find the source. - * What DirectorySourceContainer does is a file exists on: - * "/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src//dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc" - * which obviously does not exist. - */ - @Ignore("Not supported in GDB >= 7.6 because DSF is using the full path name to pass to the ISourceContainer.findSourceElements") - @Test - @Override - public void directorySource() throws Throwable { - super.directorySource(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionNonStopTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionNonStopTest_7_6.java deleted file mode 100644 index 566259226a7..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionNonStopTest_7_6.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013, 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_6 extends StepIntoSelectionTest_7_6 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionTest_7_6.java deleted file mode 100644 index 98dcf15efb2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/StepIntoSelectionTest_7_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.StepIntoSelectionTest_7_5; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_6 extends StepIntoSelectionTest_7_5 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_7_6.java deleted file mode 100644 index cd654bb79e1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_7_6.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_6. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_6.class, - MIRunControlTargetAvailableTest_7_6.class, - MIRunControlNonStopTargetAvailableTest_7_6.class, - MIExpressionsTest_7_6.class, - MIExpressionsNonStopTest_7_6.class, - GDBPatternMatchingExpressionsTest_7_6.class, - MIMemoryTest_7_6.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_6.class, - GDBProcessesTest_7_6.class, - LaunchConfigurationAndRestartTest_7_6.class, - OperationsWhileTargetIsRunningTest_7_6.class, - OperationsWhileTargetIsRunningNonStopTest_7_6.class, - PostMortemCoreTest_7_6.class, - CommandTimeoutTest_7_6.class, - GDBMultiNonStopRunControlTest_7_6.class, - GDBConsoleBreakpointsTest_7_6.class, - GDBConsoleSynchronizingTest_7_6.class, - StepIntoSelectionTest_7_6.class, - StepIntoSelectionNonStopTest_7_6.class, - SourceLookupTest_7_6.class, - /* Add your test class here */ -}) - -public class Suite_7_6 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_Remote_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_Remote_7_6.java deleted file mode 100644 index e3b669a0a1c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/Suite_Remote_7_6.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_6 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_6.class, - GDBRemoteTracepointsTest_7_6.class, - MIRegistersTest.class, - MIRunControlTest_7_6.class, - MIRunControlTargetAvailableTest_7_6.class, - MIRunControlNonStopTargetAvailableTest_7_6.class, - MIExpressionsTest_7_6.class, - MIExpressionsNonStopTest_7_6.class, - GDBPatternMatchingExpressionsTest_7_6.class, - MIMemoryTest_7_6.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_6.class, - GDBProcessesTest_7_6.class, - OperationsWhileTargetIsRunningTest_7_6.class, - OperationsWhileTargetIsRunningNonStopTest_7_6.class, - CommandTimeoutTest_7_6.class, - GDBConsoleBreakpointsTest_7_6.class, - TraceFileTest_7_6.class, - GDBConsoleSynchronizingTest_7_6.class, - StepIntoSelectionTest_7_6.class, - StepIntoSelectionNonStopTest_7_6.class, - SourceLookupTest_7_6.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_6 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/TraceFileTest_7_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/TraceFileTest_7_6.java deleted file mode 100644 index 7128e0f6689..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_6/TraceFileTest_7_6.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.TraceFileTest_7_5; - -public class TraceFileTest_7_6 extends TraceFileTest_7_5 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/CommandTimeoutTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/CommandTimeoutTest_7_7.java deleted file mode 100644 index 6b5edb1b61e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/CommandTimeoutTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.CommandTimeoutTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_7 extends CommandTimeoutTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleBreakpointsTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleBreakpointsTest_7_7.java deleted file mode 100644 index 6ff9cde88b0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleBreakpointsTest_7_7.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBConsoleBreakpointsTest_7_6; - -public class GDBConsoleBreakpointsTest_7_7 extends GDBConsoleBreakpointsTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleSynchronizingTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleSynchronizingTest_7_7.java deleted file mode 100644 index 24d9c74a640..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBConsoleSynchronizingTest_7_7.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBConsoleSynchronizingTest_7_6; -import org.junit.runner.RunWith; - -/** - * This test case verifies that different commands issued from the - * GDB console cause proper updating within the CDT views. - */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_7 extends GDBConsoleSynchronizingTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBMultiNonStopRunControlTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBMultiNonStopRunControlTest_7_7.java deleted file mode 100644 index 03861079617..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBMultiNonStopRunControlTest_7_7.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBMultiNonStopRunControlTest_7_6; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_7 extends GDBMultiNonStopRunControlTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBPatternMatchingExpressionsTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBPatternMatchingExpressionsTest_7_7.java deleted file mode 100644 index d79dd8ebfe3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBPatternMatchingExpressionsTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBPatternMatchingExpressionsTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_7 extends GDBPatternMatchingExpressionsTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBProcessesTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBProcessesTest_7_7.java deleted file mode 100644 index 91707163a52..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBProcessesTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBProcessesTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_7 extends GDBProcessesTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBRemoteTracepointsTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBRemoteTracepointsTest_7_7.java deleted file mode 100644 index e15054afef0..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/GDBRemoteTracepointsTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.GDBRemoteTracepointsTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_7 extends GDBRemoteTracepointsTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/LaunchConfigurationAndRestartTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/LaunchConfigurationAndRestartTest_7_7.java deleted file mode 100644 index 40d818bd8c1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/LaunchConfigurationAndRestartTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.LaunchConfigurationAndRestartTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_7 extends LaunchConfigurationAndRestartTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIDisassemblyTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIDisassemblyTest_7_7.java deleted file mode 100644 index 21da1e60952..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIDisassemblyTest_7_7.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.MIDisassemblyTest_7_6; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_7 extends MIDisassemblyTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsNonStopTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsNonStopTest_7_7.java deleted file mode 100644 index bd90d39110b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsNonStopTest_7_7.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_7 extends MIExpressionsTest_7_7 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsTest_7_7.java deleted file mode 100644 index eeeb585d03f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIExpressionsTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.MIExpressionsTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_7 extends MIExpressionsTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIMemoryTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIMemoryTest_7_7.java deleted file mode 100644 index 48dd3196e43..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIMemoryTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.MIMemoryTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_7 extends MIMemoryTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlNonStopTargetAvailableTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlNonStopTargetAvailableTest_7_7.java deleted file mode 100644 index 8ae0fe0f08e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlNonStopTargetAvailableTest_7_7.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_7 extends MIRunControlTargetAvailableTest_7_7 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTargetAvailableTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTargetAvailableTest_7_7.java deleted file mode 100644 index e45f64ed6fd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTargetAvailableTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.MIRunControlTargetAvailableTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_7 extends MIRunControlTargetAvailableTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTest_7_7.java deleted file mode 100644 index e2502d52f80..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/MIRunControlTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.MIRunControlTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_7 extends MIRunControlTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningNonStopTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningNonStopTest_7_7.java deleted file mode 100644 index a7bc1756709..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningNonStopTest_7_7.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_7 extends OperationsWhileTargetIsRunningTest_7_7 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningTest_7_7.java deleted file mode 100644 index f61aa48aab6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/OperationsWhileTargetIsRunningTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.OperationsWhileTargetIsRunningTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_7 extends OperationsWhileTargetIsRunningTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/PostMortemCoreTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/PostMortemCoreTest_7_7.java deleted file mode 100644 index 6a9425382fd..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/PostMortemCoreTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.PostMortemCoreTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_7 extends PostMortemCoreTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/SourceLookupTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/SourceLookupTest_7_7.java deleted file mode 100644 index f549d3533df..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/SourceLookupTest_7_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.SourceLookupTest_7_6; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_7 extends SourceLookupTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionNonStopTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionNonStopTest_7_7.java deleted file mode 100644 index 4bd51f4970a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionNonStopTest_7_7.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_7 extends StepIntoSelectionTest_7_7 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionTest_7_7.java deleted file mode 100644 index 7b88e771231..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/StepIntoSelectionTest_7_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.StepIntoSelectionTest_7_6; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_7 extends StepIntoSelectionTest_7_6 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_7_7.java deleted file mode 100644 index 80d925ff47e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_7_7.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_7. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_7.class, - MIRunControlTargetAvailableTest_7_7.class, - MIRunControlNonStopTargetAvailableTest_7_7.class, - MIExpressionsTest_7_7.class, - MIExpressionsNonStopTest_7_7.class, - GDBPatternMatchingExpressionsTest_7_7.class, - MIMemoryTest_7_7.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_7.class, - GDBProcessesTest_7_7.class, - LaunchConfigurationAndRestartTest_7_7.class, - OperationsWhileTargetIsRunningTest_7_7.class, - OperationsWhileTargetIsRunningNonStopTest_7_7.class, - PostMortemCoreTest_7_7.class, - CommandTimeoutTest_7_7.class, - GDBMultiNonStopRunControlTest_7_7.class, - GDBConsoleBreakpointsTest_7_7.class, - GDBConsoleSynchronizingTest_7_7.class, - StepIntoSelectionTest_7_7.class, - StepIntoSelectionNonStopTest_7_7.class, - SourceLookupTest_7_7.class, - /* Add your test class here */ -}) - -public class Suite_7_7 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_Remote_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_Remote_7_7.java deleted file mode 100644 index 65f1dcba98a..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/Suite_Remote_7_7.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_7 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_7.class, - GDBRemoteTracepointsTest_7_7.class, - MIRegistersTest.class, - MIRunControlTest_7_7.class, - MIRunControlTargetAvailableTest_7_7.class, - MIRunControlNonStopTargetAvailableTest_7_7.class, - MIExpressionsTest_7_7.class, - MIExpressionsNonStopTest_7_7.class, - GDBPatternMatchingExpressionsTest_7_7.class, - MIMemoryTest_7_7.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_7.class, - GDBProcessesTest_7_7.class, - OperationsWhileTargetIsRunningTest_7_7.class, - OperationsWhileTargetIsRunningNonStopTest_7_7.class, - CommandTimeoutTest_7_7.class, - GDBConsoleBreakpointsTest_7_7.class, - TraceFileTest_7_7.class, - GDBConsoleSynchronizingTest_7_7.class, - StepIntoSelectionTest_7_7.class, - StepIntoSelectionNonStopTest_7_7.class, - SourceLookupTest_7_7.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_7 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/TraceFileTest_7_7.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/TraceFileTest_7_7.java deleted file mode 100644 index 8fa67ddfa99..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_7/TraceFileTest_7_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.TraceFileTest_7_6; - -public class TraceFileTest_7_7 extends TraceFileTest_7_6 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/CommandTimeoutTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/CommandTimeoutTest_7_8.java deleted file mode 100644 index 41e0e5eda04..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/CommandTimeoutTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.CommandTimeoutTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_8 extends CommandTimeoutTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleBreakpointsTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleBreakpointsTest_7_8.java deleted file mode 100644 index 47f3996e705..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleBreakpointsTest_7_8.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBConsoleBreakpointsTest_7_7; - -public class GDBConsoleBreakpointsTest_7_8 extends GDBConsoleBreakpointsTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleSynchronizingTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleSynchronizingTest_7_8.java deleted file mode 100644 index 297114a6ec6..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBConsoleSynchronizingTest_7_8.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBConsoleSynchronizingTest_7_7; -import org.junit.runner.RunWith; - -/** - * This test case verifies that different commands issued from the - * GDB console cause proper updating within the CDT views. - */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_8 extends GDBConsoleSynchronizingTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBMultiNonStopRunControlTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBMultiNonStopRunControlTest_7_8.java deleted file mode 100644 index a604bd93d39..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBMultiNonStopRunControlTest_7_8.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBMultiNonStopRunControlTest_7_7; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_8 extends GDBMultiNonStopRunControlTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBPatternMatchingExpressionsTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBPatternMatchingExpressionsTest_7_8.java deleted file mode 100644 index 92069b065d5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBPatternMatchingExpressionsTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBPatternMatchingExpressionsTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_8 extends GDBPatternMatchingExpressionsTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBProcessesTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBProcessesTest_7_8.java deleted file mode 100644 index 34ad143d5ad..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBProcessesTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBProcessesTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_8 extends GDBProcessesTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBRemoteTracepointsTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBRemoteTracepointsTest_7_8.java deleted file mode 100644 index ae7e9ddfdbe..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/GDBRemoteTracepointsTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.GDBRemoteTracepointsTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_8 extends GDBRemoteTracepointsTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/LaunchConfigurationAndRestartTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/LaunchConfigurationAndRestartTest_7_8.java deleted file mode 100644 index 0cc177d88d5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/LaunchConfigurationAndRestartTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.LaunchConfigurationAndRestartTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_8 extends LaunchConfigurationAndRestartTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIDisassemblyTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIDisassemblyTest_7_8.java deleted file mode 100644 index 1e27bb37c49..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIDisassemblyTest_7_8.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.MIDisassemblyTest_7_7; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_8 extends MIDisassemblyTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsNonStopTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsNonStopTest_7_8.java deleted file mode 100644 index c1a5911ca92..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsNonStopTest_7_8.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_8 extends MIExpressionsTest_7_8 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsTest_7_8.java deleted file mode 100644 index 0b952348907..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIExpressionsTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.MIExpressionsTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_8 extends MIExpressionsTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIMemoryTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIMemoryTest_7_8.java deleted file mode 100644 index dc21689bcfc..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIMemoryTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.MIMemoryTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_8 extends MIMemoryTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlNonStopTargetAvailableTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlNonStopTargetAvailableTest_7_8.java deleted file mode 100644 index 4c5ddeaeb4b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlNonStopTargetAvailableTest_7_8.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_8 extends MIRunControlTargetAvailableTest_7_8 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTargetAvailableTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTargetAvailableTest_7_8.java deleted file mode 100644 index 87c4df65703..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTargetAvailableTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.MIRunControlTargetAvailableTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_8 extends MIRunControlTargetAvailableTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTest_7_8.java deleted file mode 100644 index bb7d053b140..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/MIRunControlTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.MIRunControlTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_8 extends MIRunControlTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningNonStopTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningNonStopTest_7_8.java deleted file mode 100644 index 7bb9911962b..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningNonStopTest_7_8.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_8 extends OperationsWhileTargetIsRunningTest_7_8 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningTest_7_8.java deleted file mode 100644 index a4d1eccc852..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/OperationsWhileTargetIsRunningTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.OperationsWhileTargetIsRunningTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_8 extends OperationsWhileTargetIsRunningTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/PostMortemCoreTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/PostMortemCoreTest_7_8.java deleted file mode 100644 index c608786fdc2..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/PostMortemCoreTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.PostMortemCoreTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_8 extends PostMortemCoreTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/SourceLookupTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/SourceLookupTest_7_8.java deleted file mode 100644 index 507ef6e7f39..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/SourceLookupTest_7_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.SourceLookupTest_7_7; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_8 extends SourceLookupTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionNonStopTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionNonStopTest_7_8.java deleted file mode 100644 index af597a4d02c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionNonStopTest_7_8.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_8 extends StepIntoSelectionTest_7_8 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionTest_7_8.java deleted file mode 100644 index e841cc58a29..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/StepIntoSelectionTest_7_8.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.StepIntoSelectionTest_7_7; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_8 extends StepIntoSelectionTest_7_7 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_7_8.java deleted file mode 100644 index 3ee3db8c47f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_7_8.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_8. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_8.class, - MIRunControlTargetAvailableTest_7_8.class, - MIRunControlNonStopTargetAvailableTest_7_8.class, - MIExpressionsTest_7_8.class, - MIExpressionsNonStopTest_7_8.class, - GDBPatternMatchingExpressionsTest_7_8.class, - MIMemoryTest_7_8.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_8.class, - GDBProcessesTest_7_8.class, - LaunchConfigurationAndRestartTest_7_8.class, - OperationsWhileTargetIsRunningTest_7_8.class, - OperationsWhileTargetIsRunningNonStopTest_7_8.class, - PostMortemCoreTest_7_8.class, - CommandTimeoutTest_7_8.class, - GDBMultiNonStopRunControlTest_7_8.class, - GDBConsoleBreakpointsTest_7_8.class, - GDBConsoleSynchronizingTest_7_8.class, - StepIntoSelectionTest_7_8.class, - StepIntoSelectionNonStopTest_7_8.class, - SourceLookupTest_7_8.class, - /* Add your test class here */ -}) - -public class Suite_7_8 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_Remote_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_Remote_7_8.java deleted file mode 100644 index 85d042a39be..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/Suite_Remote_7_8.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_8 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_8.class, - GDBRemoteTracepointsTest_7_8.class, - MIRegistersTest.class, - MIRunControlTest_7_8.class, - MIRunControlTargetAvailableTest_7_8.class, - MIRunControlNonStopTargetAvailableTest_7_8.class, - MIExpressionsTest_7_8.class, - MIExpressionsNonStopTest_7_8.class, - GDBPatternMatchingExpressionsTest_7_8.class, - MIMemoryTest_7_8.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_8.class, - GDBProcessesTest_7_8.class, - OperationsWhileTargetIsRunningTest_7_8.class, - OperationsWhileTargetIsRunningNonStopTest_7_8.class, - CommandTimeoutTest_7_8.class, - GDBConsoleBreakpointsTest_7_8.class, - TraceFileTest_7_8.class, - GDBConsoleSynchronizingTest_7_8.class, - StepIntoSelectionTest_7_8.class, - StepIntoSelectionNonStopTest_7_8.class, - SourceLookupTest_7_8.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_8 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/TraceFileTest_7_8.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/TraceFileTest_7_8.java deleted file mode 100644 index d12118678b5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_8/TraceFileTest_7_8.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mentor Graphics - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.TraceFileTest_7_7; - -public class TraceFileTest_7_8 extends TraceFileTest_7_7 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/CommandTimeoutTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/CommandTimeoutTest_7_9.java deleted file mode 100644 index cb4b6d5e94e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/CommandTimeoutTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.CommandTimeoutTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class CommandTimeoutTest_7_9 extends CommandTimeoutTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleBreakpointsTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleBreakpointsTest_7_9.java deleted file mode 100644 index 0a66d0c78b1..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleBreakpointsTest_7_9.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBConsoleBreakpointsTest_7_8; - -public class GDBConsoleBreakpointsTest_7_9 extends GDBConsoleBreakpointsTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleSynchronizingTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleSynchronizingTest_7_9.java deleted file mode 100644 index 4f0ca15b929..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBConsoleSynchronizingTest_7_9.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBConsoleSynchronizingTest_7_8; -import org.junit.runner.RunWith; - -/** - * This test case verifies that different commands issued from the - * GDB console cause proper updating within the CDT views. - */ -@RunWith(BackgroundRunner.class) -public class GDBConsoleSynchronizingTest_7_9 extends GDBConsoleSynchronizingTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBMultiNonStopRunControlTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBMultiNonStopRunControlTest_7_9.java deleted file mode 100644 index 0dd619ee57c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBMultiNonStopRunControlTest_7_9.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBMultiNonStopRunControlTest_7_8; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class GDBMultiNonStopRunControlTest_7_9 extends GDBMultiNonStopRunControlTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBPatternMatchingExpressionsTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBPatternMatchingExpressionsTest_7_9.java deleted file mode 100644 index 4137edca901..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBPatternMatchingExpressionsTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBPatternMatchingExpressionsTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBPatternMatchingExpressionsTest_7_9 extends GDBPatternMatchingExpressionsTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBProcessesTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBProcessesTest_7_9.java deleted file mode 100644 index fd48a1aab5f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBProcessesTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBProcessesTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBProcessesTest_7_9 extends GDBProcessesTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBRemoteTracepointsTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBRemoteTracepointsTest_7_9.java deleted file mode 100644 index 4eec17f3a7e..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/GDBRemoteTracepointsTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.GDBRemoteTracepointsTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class GDBRemoteTracepointsTest_7_9 extends GDBRemoteTracepointsTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/LaunchConfigurationAndRestartTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/LaunchConfigurationAndRestartTest_7_9.java deleted file mode 100644 index a857efc3b3d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/LaunchConfigurationAndRestartTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.LaunchConfigurationAndRestartTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class LaunchConfigurationAndRestartTest_7_9 extends LaunchConfigurationAndRestartTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIDisassemblyTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIDisassemblyTest_7_9.java deleted file mode 100644 index ce836667697..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIDisassemblyTest_7_9.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.MIDisassemblyTest_7_8; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class MIDisassemblyTest_7_9 extends MIDisassemblyTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsNonStopTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsNonStopTest_7_9.java deleted file mode 100644 index 48b6880a010..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsNonStopTest_7_9.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial Implementation - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsNonStopTest_7_9 extends MIExpressionsTest_7_9 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsTest_7_9.java deleted file mode 100644 index c1210b30408..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIExpressionsTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.MIExpressionsTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIExpressionsTest_7_9 extends MIExpressionsTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIMemoryTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIMemoryTest_7_9.java deleted file mode 100644 index a053ae26d5c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIMemoryTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.MIMemoryTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIMemoryTest_7_9 extends MIMemoryTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlNonStopTargetAvailableTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlNonStopTargetAvailableTest_7_9.java deleted file mode 100644 index 0f802dd242f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlNonStopTargetAvailableTest_7_9.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlNonStopTargetAvailableTest_7_9 extends MIRunControlTargetAvailableTest_7_9 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTargetAvailableTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTargetAvailableTest_7_9.java deleted file mode 100644 index ec0f4a7236d..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTargetAvailableTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.MIRunControlTargetAvailableTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTargetAvailableTest_7_9 extends MIRunControlTargetAvailableTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTest_7_9.java deleted file mode 100644 index 651cb6c50b5..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/MIRunControlTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.MIRunControlTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class MIRunControlTest_7_9 extends MIRunControlTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningNonStopTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningNonStopTest_7_9.java deleted file mode 100644 index e92ba9ffb36..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningNonStopTest_7_9.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningNonStopTest_7_9 extends OperationsWhileTargetIsRunningTest_7_9 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningTest_7_9.java deleted file mode 100644 index 766253d27af..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/OperationsWhileTargetIsRunningTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.OperationsWhileTargetIsRunningTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class OperationsWhileTargetIsRunningTest_7_9 extends OperationsWhileTargetIsRunningTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/PostMortemCoreTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/PostMortemCoreTest_7_9.java deleted file mode 100644 index add54337380..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/PostMortemCoreTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.PostMortemCoreTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class PostMortemCoreTest_7_9 extends PostMortemCoreTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/SourceLookupTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/SourceLookupTest_7_9.java deleted file mode 100644 index d8c07ffe655..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/SourceLookupTest_7_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Kichwa Coders and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.SourceLookupTest_7_8; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class SourceLookupTest_7_9 extends SourceLookupTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionNonStopTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionNonStopTest_7_9.java deleted file mode 100644 index 88424f8d2fc..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionNonStopTest_7_9.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.junit.Assume; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionNonStopTest_7_9 extends StepIntoSelectionTest_7_9 { - - @BeforeClass - public static void beforeClass() { - Assume.assumeTrue(supportsNonStop()); - } - - @Override - protected void setLaunchAttributes() { - super.setLaunchAttributes(); - - setLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_NON_STOP, true); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionTest_7_9.java deleted file mode 100644 index 8692273909c..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/StepIntoSelectionTest_7_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Support for Step into selection (bug 244865) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.StepIntoSelectionTest_7_8; -import org.junit.runner.RunWith; - - -@RunWith(BackgroundRunner.class) -public class StepIntoSelectionTest_7_9 extends StepIntoSelectionTest_7_8 { - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_7_9.java deleted file mode 100644 index 396c273337f..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_7_9.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_9. - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - MIRegistersTest.class, - MIRunControlTest_7_9.class, - MIRunControlTargetAvailableTest_7_9.class, - MIRunControlNonStopTargetAvailableTest_7_9.class, - MIExpressionsTest_7_9.class, - MIExpressionsNonStopTest_7_9.class, - GDBPatternMatchingExpressionsTest_7_9.class, - MIMemoryTest_7_9.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_9.class, - GDBProcessesTest_7_9.class, - LaunchConfigurationAndRestartTest_7_9.class, - OperationsWhileTargetIsRunningTest_7_9.class, - OperationsWhileTargetIsRunningNonStopTest_7_9.class, - PostMortemCoreTest_7_9.class, - CommandTimeoutTest_7_9.class, - GDBMultiNonStopRunControlTest_7_9.class, - GDBConsoleBreakpointsTest_7_9.class, - GDBConsoleSynchronizingTest_7_9.class, - StepIntoSelectionTest_7_9.class, - StepIntoSelectionNonStopTest_7_9.class, - SourceLookupTest_7_9.class, - /* Add your test class here */ -}) - -public class Suite_7_9 { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_Remote_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_Remote_7_9.java deleted file mode 100644 index d79df64e4ab..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/Suite_Remote_7_9.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 Ericsson and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial implementation of Test cases - * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite - * Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765) - *******************************************************************************/ -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseRemoteSuite; -import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase; -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIBreakpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MICatchpointsTest; -import org.eclipse.cdt.tests.dsf.gdb.tests.MIRegistersTest; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -/** - * This class is meant to be empty. It enables us to define - * the annotations which list all the different JUnit class we - * want to run. When creating a new test class, it should be - * added to the list below. - * - * This suite is for tests to be run with GDB 7_9 - */ - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - // We need specific name for the tests of this suite, because of bug https://bugs.eclipse.org/172256 - GDBMultiNonStopRunControlTest_7_9.class, - GDBRemoteTracepointsTest_7_9.class, - MIRegistersTest.class, - MIRunControlTest_7_9.class, - MIRunControlTargetAvailableTest_7_9.class, - MIRunControlNonStopTargetAvailableTest_7_9.class, - MIExpressionsTest_7_9.class, - MIExpressionsNonStopTest_7_9.class, - GDBPatternMatchingExpressionsTest_7_9.class, - MIMemoryTest_7_9.class, - MIBreakpointsTest.class, - MICatchpointsTest.class, - MIDisassemblyTest_7_9.class, - GDBProcessesTest_7_9.class, - OperationsWhileTargetIsRunningTest_7_9.class, - OperationsWhileTargetIsRunningNonStopTest_7_9.class, - CommandTimeoutTest_7_9.class, - GDBConsoleBreakpointsTest_7_9.class, - TraceFileTest_7_9.class, - GDBConsoleSynchronizingTest_7_9.class, - StepIntoSelectionTest_7_9.class, - StepIntoSelectionNonStopTest_7_9.class, - SourceLookupTest_7_9.class, - /* Add your test class here */ -}) - -public class Suite_Remote_7_9 extends BaseRemoteSuite { - @BeforeClass - public static void beforeClassMethod() { - BaseTestCase.setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - BaseTestCase.ignoreIfGDBMissing(); - } -} diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/TraceFileTest_7_9.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/TraceFileTest_7_9.java deleted file mode 100644 index b4708a9f5d3..00000000000 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_9/TraceFileTest_7_9.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Mentor Graphics and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Marc Khouzam (Ericsson) - Initial API and implementation - *******************************************************************************/ - -package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; - -import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants; -import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.TraceFileTest_7_8; - -public class TraceFileTest_7_9 extends TraceFileTest_7_8 { - - @Override - protected void setGdbVersion() { - setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9); - } -}