Skip to content

Commit dbbbdfc

Browse files
committed
Mark tcache tests so that they scan be skipped
1 parent ee605f9 commit dbbbdfc

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/commands/heap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Heap commands test module
33
"""
44

5+
import pytest
6+
57
from tests.base import RemoteGefUnitTestGeneric
68
from tests.utils import (
79
ARCH,
@@ -179,6 +181,7 @@ def test_cmd_heap_bins_non_main(self):
179181
res = gdb.execute(cmd, to_string=True)
180182
self.assertIn("size=0x20", res)
181183

184+
@pytest.mark.tcache
182185
def test_cmd_heap_bins_tcache(self):
183186
gdb = self._gdb
184187
gdb.execute("run")
@@ -292,6 +295,7 @@ def setUp(self) -> None:
292295
self.expected_tcache_bin_size = 0x20 if ARCH == "i686" or is_64b() else 0x18
293296
return super().setUp()
294297

298+
@pytest.mark.tcache
295299
def test_cmd_heap_bins_tcache_all(self):
296300
gdb = self._gdb
297301
gdb.execute("run")

tests/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ testpaths =
1414
markers =
1515
slow: flag test as slow (deselect with '-m "not slow"')
1616
online: flag test as requiring internet to work (deselect with '-m "not online"')
17+
tcache: flag test as checking glibc tcache (deselect with '-m "not tcache"')

0 commit comments

Comments
 (0)