diff options
Diffstat (limited to 'lldb/test/API/functionalities/stats_api')
-rw-r--r-- | lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py | 23 | ||||
-rw-r--r-- | lldb/test/API/functionalities/stats_api/main.c | 2 |
2 files changed, 2 insertions, 23 deletions
diff --git a/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py b/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py index 457a202..fe55922 100644 --- a/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py +++ b/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py @@ -16,10 +16,7 @@ class TestStatsAPI(TestBase): """ self.build() exe = self.getBuildArtifact("a.out") - # Launch a process and break - (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) + target = self.dbg.CreateTarget(exe) # Test enabling/disabling stats self.assertFalse(target.GetCollectingStats()) @@ -77,24 +74,6 @@ class TestStatsAPI(TestBase): 'Make sure the "failures" key in in "frameVariable" dictionary"', ) - # Test statistics summary. - stats_options = lldb.SBStatisticsOptions() - stats_options.SetSummaryOnly(True) - stats_summary = target.GetStatistics(stats_options) - stream_summary = lldb.SBStream() - 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. - for key, value in debug_stats_summary.items(): - self.assertIn(key, debug_stats) - if key != "targets" and not key.endswith("Time"): - self.assertEqual(debug_stats[key], value) - def test_command_stats_api(self): """ Test GetCommandInterpreter::GetStatistics() API. diff --git a/lldb/test/API/functionalities/stats_api/main.c b/lldb/test/API/functionalities/stats_api/main.c index 02fea2e..03b2213 100644 --- a/lldb/test/API/functionalities/stats_api/main.c +++ b/lldb/test/API/functionalities/stats_api/main.c @@ -1,3 +1,3 @@ int main(void) { - return 0; // break here + return 0; } |