mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-12-04 11:43:30 +00:00
rename another saved regs to saved context
This commit is contained in:
parent
80f35d3b2b
commit
bfa51bb5dc
@ -333,7 +333,7 @@ def test_i386_reg_save():
|
||||
mu.emu_start(address, address+1)
|
||||
|
||||
print(">>> save the register state")
|
||||
saved_regs = mu.context_save()
|
||||
saved_context = mu.context_save()
|
||||
|
||||
print(">>> execute 'inc eax'")
|
||||
mu.emu_start(address, address+1)
|
||||
@ -342,7 +342,7 @@ def test_i386_reg_save():
|
||||
assert mu.reg_read(UC_X86_REG_EAX) == 3
|
||||
|
||||
print(">>> restore the register state")
|
||||
mu.context_restore(saved_regs)
|
||||
mu.context_restore(saved_context)
|
||||
|
||||
print(">>> assert eax == 2")
|
||||
assert mu.reg_read(UC_X86_REG_EAX) == 2
|
||||
@ -354,7 +354,7 @@ def test_i386_reg_save():
|
||||
assert mu.reg_read(UC_X86_REG_EAX) == 3
|
||||
|
||||
print(">>> restore the register state")
|
||||
mu.context_restore(saved_regs)
|
||||
mu.context_restore(saved_context)
|
||||
|
||||
print(">>> assert eax == 2")
|
||||
assert mu.reg_read(UC_X86_REG_EAX) == 2
|
||||
|
Loading…
Reference in New Issue
Block a user