Skip to content

Commit

Permalink
update test code to match latest changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Dec 22, 2023
1 parent 3be1c00 commit 545c371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/commands/heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ def test_cmd_heap_chunks_max_size_filter(self):

def test_cmd_heap_chunks_with_count(self):
cmd = "heap chunks --count 1"
target = _target("heap")
target = debug_target("heap")
self.assertFailIfInactiveSession(gdb_run_cmd(cmd, target=target))
res = gdb_run_silent_cmd(cmd, target=target)
self.assertNoException(res)
self.assertIn("Chunk(addr=", res)

cmd = "heap chunks --count 0"
target = _target("heap")
target = debug_target("heap")
self.assertFailIfInactiveSession(gdb_run_cmd(cmd, target=target))
res = gdb_run_silent_cmd(cmd, target=target)
self.assertNoException(res)
Expand Down

0 comments on commit 545c371

Please sign in to comment.