Skip to content

Commit

Permalink
[lldb] Fix TestStatisticsAPI after 9293fc7 (#94683)
Browse files Browse the repository at this point in the history
  • Loading branch information
bulbazord authored Jun 6, 2024
1 parent 4a918f0 commit ba7f52c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ def test_stats_api(self):
stats_summary.GetAsJSON(stream_summary)
debug_stats_summary = json.loads(stream_summary.GetData())
self.assertNotIn("modules", debug_stats_summary)
self.assertNotIn("memory", debug_stats_summary)
self.assertNotIn("commands", debug_stats_summary)

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

def test_command_stats_api(self):
Expand Down

0 comments on commit ba7f52c

Please sign in to comment.