1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 00:36:16 +02:00

Write L-value test works with gdb >= 6.8, so refactor to make it available for those classes.

This commit is contained in:
John Cortell 2010-03-04 17:17:44 +00:00
parent e6794e5a2e
commit d84ca549b2
3 changed files with 16 additions and 1 deletions

View file

@ -2761,7 +2761,6 @@ public class MIExpressionsTest extends BaseTestCase {
* This test verifies that we properly return if we can write to an expression
* that is an L-Value or a Constant
*/
@Ignore("Only works in versions later than GDB6.7")
@Test
public void testCanWriteLValue() throws Throwable {
MIStoppedEvent stoppedEvent = SyncUtil.runToLocation("testCanWrite"); // Re-use test

View file

@ -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.MIExpressionsTest;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
@ -21,4 +23,10 @@ public class MIExpressionsTest_6_6 extends MIExpressionsTest {
public static void beforeClassMethod_6_6() {
setGdbProgramNamesLaunchAttributes("6.6");
}
@Override
@Ignore("Only works in versions later than GDB6.7")
@Test
public void testCanWriteLValue() throws Throwable {
}
}

View file

@ -13,6 +13,8 @@ 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.MIExpressionsTest;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
@ -21,4 +23,10 @@ public class MIExpressionsTest_6_7 extends MIExpressionsTest {
public static void beforeClassMethod_6_7() {
setGdbProgramNamesLaunchAttributes("6.7");
}
@Override
@Ignore("Only works in versions later than GDB6.7")
@Test
public void testCanWriteLValue() throws Throwable {
}
}