fix libc objfile name in tests

This commit is contained in:
disconnect3d 2022-09-23 02:10:19 +02:00 committed by Disconnect3d
parent 11f878977e
commit 02eb8e6dd7
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ def test_command_nextproginstr(start_binary):
gdb.execute("continue")
# Sanity check that we are in libc
libc = "libc.so.6"
assert pwndbg.vmmap.find(pwndbg.gdblib.regs.rip).objfile.endswith(libc)
assert "libc" in pwndbg.vmmap.find(pwndbg.gdblib.regs.rip).objfile
# Execute nextproginstr and see if we came back to the same vmmap page
gdb.execute("nextproginstr")