mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 456959 - Disable test for versions of GDB that don't support it
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
3cbb643870
commit
2c1113c590
2 changed files with 24 additions and 0 deletions
|
@ -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.framework.BackgroundRunner;
|
||||||
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
|
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.MIBreakpointsTest;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
@RunWith(BackgroundRunner.class)
|
@RunWith(BackgroundRunner.class)
|
||||||
|
@ -21,4 +23,14 @@ public class MIBreakpointsTest_6_6 extends MIBreakpointsTest {
|
||||||
protected void setGdbVersion() {
|
protected void setGdbVersion() {
|
||||||
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,4 +60,16 @@ public class MIBreakpointsTest_7_4 extends MIBreakpointsTest_7_3 {
|
||||||
assertTrue("Breakpoint should be pending", bpData.isPending());
|
assertTrue("Breakpoint should be pending", bpData.isPending());
|
||||||
assertTrue("Breakpoint mismatch should be enabled", bpData.isEnabled());
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue