rename another saved regs to saved context

This commit is contained in:
Andrew Dutcher 2016-10-11 13:07:53 -07:00
parent 80f35d3b2b
commit bfa51bb5dc

View File

@ -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