mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0: Fix tests.
This commit is contained in:
@@ -1143,7 +1143,7 @@ public class GdbMethodsTest extends AbstractGdbTraceRmiTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBreakEvent() throws Exception {
|
||||
public void testBreakExtEvent() throws Exception {
|
||||
try (GdbAndConnection conn = startAndConnectGdb()) {
|
||||
conn.execute("""
|
||||
file bash
|
||||
@@ -1151,13 +1151,15 @@ public class GdbMethodsTest extends AbstractGdbTraceRmiTest {
|
||||
%s
|
||||
start"""
|
||||
.formatted(INSTRUMENT_STOPPED));
|
||||
RemoteMethod breakEvent = conn.getMethod("break_event");
|
||||
RemoteMethod breakEvent = conn.getMethod("break_ext_event");
|
||||
try (ManagedDomainObject mdo = openDomainObject("/New Traces/gdb/bash")) {
|
||||
tb = new ToyDBTraceBuilder((Trace) mdo.get());
|
||||
waitStopped();
|
||||
|
||||
TraceObject inf = Objects.requireNonNull(tb.obj("Inferiors[1]"));
|
||||
breakEvent.invoke(Map.of("inferior", inf, "spec", "load"));
|
||||
breakEvent.invoke(Map.ofEntries(
|
||||
Map.entry("inferior", inf),
|
||||
Map.entry("spec", "load")));
|
||||
|
||||
String out = conn.executeCapture("info break");
|
||||
assertThat(out, containsString("load of library"));
|
||||
|
||||
@@ -308,7 +308,6 @@ public class LldbHooksTest extends AbstractLldbTraceRmiTest {
|
||||
start(conn, getSpecimenPrint());
|
||||
|
||||
conn.execute("cont");
|
||||
waitRunning(conn.conn);
|
||||
|
||||
waitForPass(() -> {
|
||||
TraceSnapshot snapshot =
|
||||
|
||||
Reference in New Issue
Block a user