Skip to content

Commit

Permalink
test offset too in test_cmd_xinfo_on_class
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo942 committed Jan 3, 2024
1 parent bb8ef61 commit 0c2228a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/commands/xinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<TraitA, TraitB>::Run()"])
self.assertNoException(res)
self.assertIn("Symbol: B<TraitA, TraitB>::Run", res)
self.assertIn("Symbol: B<TraitA, TraitB>::Run+4", res)

0 comments on commit 0c2228a

Please sign in to comment.