File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22Heap commands test module
33"""
44
5+ import pytest
6+
57from tests .base import RemoteGefUnitTestGeneric
68from 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" )
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ testpaths =
1414markers =
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"' )
You can’t perform that action at this time.
0 commit comments