mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 15:40:14 +00:00
GP-0: Fix tests
Fix GdbCommandsTest.testLcsp Don't take user's transaction in ghidralldb.commands.put_state
This commit is contained in:
parent
b070f86b4d
commit
2e27ca3dbb
@ -1416,15 +1416,13 @@ def put_processes():
|
||||
|
||||
|
||||
def put_state(event_process):
|
||||
STATE.require_no_tx()
|
||||
STATE.tx = STATE.require_trace().start_tx("state", undoable=False)
|
||||
ipath = PROCESS_PATTERN.format(procnum=event_process.GetProcessID())
|
||||
procobj = STATE.trace.create_object(ipath)
|
||||
state = "STOPPED" if event_process.is_stopped else "RUNNING"
|
||||
procobj.set_value('_state', state)
|
||||
procobj.insert()
|
||||
STATE.require_tx().commit()
|
||||
STATE.reset_tx()
|
||||
with STATE.client.batch():
|
||||
with STATE.require_trace().open_tx('State'):
|
||||
procobj = STATE.trace.create_object(ipath)
|
||||
state = "STOPPED" if event_process.is_stopped else "RUNNING"
|
||||
procobj.set_value('_state', state)
|
||||
procobj.insert()
|
||||
|
||||
|
||||
@convert_errors
|
||||
|
@ -243,7 +243,7 @@ public class GdbCommandsTest extends AbstractGdbTraceRmiTest {
|
||||
quit
|
||||
""".formatted(PREAMBLE));
|
||||
assertEquals("""
|
||||
Selected Ghidra language: DATA:LE:64:default
|
||||
Selected Ghidra language: x86:LE:32:default
|
||||
Selected Ghidra compiler: pointer64""",
|
||||
extractOutSection(out, "---Import---"));
|
||||
assertEquals("""
|
||||
|
Loading…
Reference in New Issue
Block a user