Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Sep 27, 2024
1 parent c55c505 commit 55a1649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -8941,7 +8941,7 @@ def do_invoke(self, _: List[str], **kwargs: Any) -> None:
if len(names) + len(addrs) == 0:
self.print_entry(entry)

elif any(filters):
elif filters:
if filter_content != last_printed_filter:
gef_print() # skip a line between different filters
gef_print(Color.greenify(filter_content))
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/vmmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_cmd_vmmap(self):
)
gdb.execute("start")
res = gdb.execute("vmmap", to_string=True)
self.assertEqual(len(res.splitlines()), 23)
self.assertGreater(len(res.splitlines()), 1)

res = gdb.execute("vmmap stack", to_string=True)
assert "`stack` has no type specified. We guessed it was a name filter." in res
Expand Down

0 comments on commit 55a1649

Please sign in to comment.