Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/commands/heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Heap commands test module
"""

import pytest

from tests.base import RemoteGefUnitTestGeneric
from tests.utils import (
ARCH,
Expand Down Expand Up @@ -179,6 +181,7 @@ def test_cmd_heap_bins_non_main(self):
res = gdb.execute(cmd, to_string=True)
self.assertIn("size=0x20", res)

@pytest.mark.tcache
def test_cmd_heap_bins_tcache(self):
gdb = self._gdb
gdb.execute("run")
Expand Down Expand Up @@ -292,6 +295,7 @@ def setUp(self) -> None:
self.expected_tcache_bin_size = 0x20 if ARCH == "i686" or is_64b() else 0x18
return super().setUp()

@pytest.mark.tcache
def test_cmd_heap_bins_tcache_all(self):
gdb = self._gdb
gdb.execute("run")
Expand Down
1 change: 1 addition & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ testpaths =
markers =
slow: flag test as slow (deselect with '-m "not slow"')
online: flag test as requiring internet to work (deselect with '-m "not online"')
tcache: flag test as checking glibc tcache (deselect with '-m "not tcache"')
Loading