diff --git a/gdb-port/tests/unit/top-level-parse.py b/gdb-port/tests/unit/top-level-parse.py index cb1c5d0c4bb175ec00c12fa2f022e06135626e13..376381c7dddf06d82037a4d1f1289a05a3bc2fb8 100644 --- a/gdb-port/tests/unit/top-level-parse.py +++ b/gdb-port/tests/unit/top-level-parse.py @@ -89,7 +89,8 @@ class TopLevelParseStateManagement(unittest.TestCase): self.top_level_parse.enter_h_arena_malloc_raw(256) self.assertEqual(self.parser1.bytes_used[int(self._arena.address)], 256) - @skipIf(self.top_level_parse.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS) + # A bit hacky: relying on the top_level_parse initialized by top-level-parse.py, because we have no reference to the testcase + @unittest.skipIf(top_level_parse.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS, "malloc-based allocation counts disabled") def test_enter_h_arena_malloc_raw(self): self.top_level_parse.parser_stacks.append(self.ps1) self.top_level_parse.parser_objs[32] = self.parser1