Search in sources :

Example 1 with GdbPType

use of org.eclipse.che.plugin.gdb.server.parser.GdbPType in project che by eclipse.

the class GdbTest method testVariables.

@Test
public void testVariables() throws Exception {
    gdb.file(file);
    gdb.breakpoint(7);
    gdb.run();
    GdbPrint gdbPrint = gdb.print("i");
    assertEquals(gdbPrint.getValue(), "0");
    gdb.setVar("i", "1");
    gdbPrint = gdb.print("i");
    assertEquals(gdbPrint.getValue(), "1");
    GdbPType gdbPType = gdb.ptype("i");
    assertEquals(gdbPType.getType(), "int");
}
Also used : GdbPrint(org.eclipse.che.plugin.gdb.server.parser.GdbPrint) GdbPType(org.eclipse.che.plugin.gdb.server.parser.GdbPType) Test(org.testng.annotations.Test)

Aggregations

GdbPType (org.eclipse.che.plugin.gdb.server.parser.GdbPType)1 GdbPrint (org.eclipse.che.plugin.gdb.server.parser.GdbPrint)1 Test (org.testng.annotations.Test)1