Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2015-02-08 00:33:34 +0000
committerMarc Khouzam2015-02-08 00:33:34 +0000
commit2c1113c590643b39fa74e8f2a09b391797b704c0 (patch)
treecbf31738539bd11f98811909ce75b3b6a2c9b8f4
parent3cbb64387018f9b2e15cefd2807cd1c2dc7a6de2 (diff)
downloadorg.eclipse.cdt-2c1113c590643b39fa74e8f2a09b391797b704c0.tar.gz
org.eclipse.cdt-2c1113c590643b39fa74e8f2a09b391797b704c0.tar.xz
org.eclipse.cdt-2c1113c590643b39fa74e8f2a09b391797b704c0.zip
Bug 456959 - Disable test for versions of GDB that don't support it
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIBreakpointsTest_6_6.java12
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIBreakpointsTest_7_4.java12
2 files changed, 24 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIBreakpointsTest_6_6.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIBreakpointsTest_6_6.java
index fb510d72781..10ae21639c1 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIBreakpointsTest_6_6.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_6_6/MIBreakpointsTest_6_6.java
@@ -13,6 +13,8 @@ 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.MIBreakpointsTest;
+import org.junit.Ignore;
+import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
@@ -21,4 +23,14 @@ public class MIBreakpointsTest_6_6 extends MIBreakpointsTest {
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6);
}
+
+ // Currently, this test uses breakpoint synchronization with
+ // the gdb console which is only available with GDB 7.4
+ // So we mark it with @Ignore
+ @Override
+ @Ignore
+ @Test
+ public void updateBreakpoint_AfterRestart() throws Throwable {
+ super.updateBreakpoint_AfterRestart();
+ }
}
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIBreakpointsTest_7_4.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIBreakpointsTest_7_4.java
index c9fb9d43bbf..f417b937867 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIBreakpointsTest_7_4.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/tests_7_4/MIBreakpointsTest_7_4.java
@@ -60,4 +60,16 @@ public class MIBreakpointsTest_7_4 extends MIBreakpointsTest_7_3 {
assertTrue("Breakpoint should be pending", bpData.isPending());
assertTrue("Breakpoint mismatch should be enabled", bpData.isEnabled());
}
+
+ // Re-enabled this test since it needs breakpoint synchronization
+ // with the gdb console, which is available starting with GDB 7.4
+ // We still leave the test in the base class MIBreakpointsTest because
+ // the test could be written differently and made to work for older
+ // gdb versions
+ @Override
+ @Test
+ public void updateBreakpoint_AfterRestart() throws Throwable {
+ super.updateBreakpoint_AfterRestart();
+ }
+
}

Back to the top