From 02eb8e6dd79b2778803c785c8897af4555cd7b05 Mon Sep 17 00:00:00 2001 From: disconnect3d Date: Fri, 23 Sep 2022 02:10:19 +0200 Subject: [PATCH] fix libc objfile name in tests --- tests/test_commands_next.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_commands_next.py b/tests/test_commands_next.py index ad56b26d..7a7e2592 100644 --- a/tests/test_commands_next.py +++ b/tests/test_commands_next.py @@ -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")