From 1b22eb71da460e7d3a301842f65c256b920f6195 Mon Sep 17 00:00:00 2001 From: edoardo Date: Tue, 2 Jan 2024 19:27:28 -0500 Subject: [PATCH] test offset too in test_cmd_xinfo_on_class --- tests/commands/xinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/commands/xinfo.py b/tests/commands/xinfo.py index afa53b949..625615b38 100644 --- a/tests/commands/xinfo.py +++ b/tests/commands/xinfo.py @@ -20,8 +20,8 @@ def test_cmd_xinfo(self): self.assertTrue(len(res.splitlines()) >= 7) def test_cmd_xinfo_on_class(self): - cmd = "xinfo $pc" + cmd = "xinfo $pc+4" target = debug_target("class") res = gdb_run_silent_cmd(cmd, target=target, before=["b B::Run()"]) self.assertNoException(res) - self.assertIn("Symbol: B::Run", res) + self.assertIn("Symbol: B::Run()+4", res)