Rename save/restore functions to match the style of the rest of the API

This commit is contained in:
Andrew Dutcher
2016-09-26 14:38:32 -07:00
parent 20ce432dbc
commit e3b0e52013
5 changed files with 19 additions and 19 deletions

View File

@ -329,7 +329,7 @@ def test_i386_reg_save():
mu.emu_start(address, address+1)
print(">>> save the register state")
saved_regs = mu.save_regs()
saved_regs = mu.regstate_save()
print(">>> execute 'inc eax'")
mu.emu_start(address, address+1)
@ -338,7 +338,7 @@ def test_i386_reg_save():
assert mu.reg_read(UC_X86_REG_EAX) == 3
print(">>> restore the register state")
mu.restore_regs(saved_regs)
mu.regstate_restore(saved_regs)
print(">>> assert eax == 2")
assert mu.reg_read(UC_X86_REG_EAX) == 2
@ -350,7 +350,7 @@ def test_i386_reg_save():
assert mu.reg_read(UC_X86_REG_EAX) == 3
print(">>> restore the register state")
mu.restore_regs(saved_regs)
mu.regstate_restore(saved_regs)
print(">>> assert eax == 2")
assert mu.reg_read(UC_X86_REG_EAX) == 2