From ffc3a46c83387dfd8eacff738d8ce3788e32487a Mon Sep 17 00:00:00 2001 From: me Date: Thu, 16 Feb 2023 17:35:04 -0500 Subject: [PATCH] updated some values to be in hex, removed some code that was just used for development (the ipython thing) --- tests/test_history.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_history.py b/tests/test_history.py index 97d865e4..6ad2d84d 100644 --- a/tests/test_history.py +++ b/tests/test_history.py @@ -4,8 +4,6 @@ from qiling.const import QL_VERBOSE from qiling.extensions.coverage.formats.history import History from typing import List -from IPython import embed - class HistoryTest(unittest.TestCase): @staticmethod @@ -24,12 +22,12 @@ class HistoryTest(unittest.TestCase): history = History(ql) ql.run() - self.assertEqual([(140736278126592, 140736280121344, 'r-x', '[mmap] libc.so.6', '')], history.get_regex_matching_exec_maps(".*libc.so.*")) + self.assertEqual([(0x7fffb7dd6000, 0x7fffb7fbd000, 'r-x', '[mmap] libc.so.6', '')], history.get_regex_matching_exec_maps(".*libc.so.*")) self.assertEqual( [ - (140736278126592, 140736280121344, 'r-x', '[mmap] libc.so.6', ''), - (140737351864320, 140737352024064, 'r-x', 'ld-linux-x86-64.so.2', '') + (0x7fffb7dd6000, 0x7fffb7fbd000, 'r-x', '[mmap] libc.so.6', ''), + (0x7ffff7dd5000, 0x7ffff7dfc000, 'r-x', 'ld-linux-x86-64.so.2', '') ], self.sanitize_mmap_path(history.get_regex_matching_exec_maps([".*libc.so.*", "ld.*"])) )