Skip to content

Commit ba7f52c

Browse files
authored
[lldb] Fix TestStatisticsAPI after 9293fc7 (#94683)
1 parent 4a918f0 commit ba7f52c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ def test_stats_api(self):
8585
stats_summary.GetAsJSON(stream_summary)
8686
debug_stats_summary = json.loads(stream_summary.GetData())
8787
self.assertNotIn("modules", debug_stats_summary)
88-
self.assertNotIn("memory", debug_stats_summary)
8988
self.assertNotIn("commands", debug_stats_summary)
9089

9190
# Summary values should be the same as in full statistics.
92-
# Except the parse time on Mac OS X is not deterministic.
91+
# The exceptions to this are:
92+
# - The parse time on Mac OS X is not deterministic.
93+
# - Memory usage may grow over time due to the use of ConstString.
9394
for key, value in debug_stats_summary.items():
9495
self.assertIn(key, debug_stats)
95-
if key != "targets" and not key.endswith("Time"):
96+
if key != "memory" and key != "targets" and not key.endswith("Time"):
9697
self.assertEqual(debug_stats[key], value)
9798

9899
def test_command_stats_api(self):

0 commit comments

Comments
 (0)