From dbbbdfca369efabe11bcdfc54d35d63569e41ff7 Mon Sep 17 00:00:00 2001 From: Gordon Messmer Date: Wed, 3 Sep 2025 22:21:34 -0700 Subject: [PATCH] Mark tcache tests so that they scan be skipped --- tests/commands/heap.py | 4 ++++ tests/pytest.ini | 1 + 2 files changed, 5 insertions(+) diff --git a/tests/commands/heap.py b/tests/commands/heap.py index b3bce6f23..49226ba48 100644 --- a/tests/commands/heap.py +++ b/tests/commands/heap.py @@ -2,6 +2,8 @@ Heap commands test module """ +import pytest + from tests.base import RemoteGefUnitTestGeneric from tests.utils import ( ARCH, @@ -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") @@ -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") diff --git a/tests/pytest.ini b/tests/pytest.ini index 726db8e60..7b86b98e8 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -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"')