diff --git a/gdb-port/tests/unit/top-level-parse.py b/gdb-port/tests/unit/top-level-parse.py index 44dfb1902c0c73f4e041ee59b69bcb43047b62f1..8132fcdcf892d6a1fcb839e207b09a3693fe6e66 100644 --- a/gdb-port/tests/unit/top-level-parse.py +++ b/gdb-port/tests/unit/top-level-parse.py @@ -48,7 +48,7 @@ class TopLevelParseStateManagement(unittest.TestCase): self.assertEqual(ps1.parse_state, 16) def test_first_h_do_parse_after_packrat_parse(self): - ps1 = ParserStack(None, self._arena) + ps1 = ParserStack(None, self._arena, self.top_level_parse) self.top_level_parse.parser_stacks.append(ps1) self.top_level_parse.first_h_do_parse_after_packrat_parse(16, self._arena) self.assertEqual(ps1.parse_state, 16) @@ -90,6 +90,7 @@ class TopLevelParseStateManagement(unittest.TestCase): self.assertEqual(self.parser1.bytes_used[int(self._arena.address)], 256) # TODO: skip this test when tracking allocations via Hammer stats + @skipIf(self.top_level_parse.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS) 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 @@ -109,7 +110,7 @@ class TopLevelParseStateManagement(unittest.TestCase): def test_parse_virtual(self): self.top_level_parse.parser_stacks.append(self.ps1) parser2 = Parser(None, 32) - self.top_level_parse.parser_stacks[-1].push(parser2) + self.top_level_parse.parser_stacks[-1].push(parser2, self._arena) self.top_level_parse.parse_virtual("foo") self.assertEqual(parser2.name, "foo")