Skip to content

Commit daf7bf3

Browse files
committed
Add negative test condition to the live test case
1 parent e51ed29 commit daf7bf3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def test_stats_api(self):
5555
stats_json,
5656
'Make sure the "frameVariable" key in in target.GetStatistics()["targets"][0]',
5757
)
58+
self.assertNotIn(
59+
"loadCoreTime",
60+
stats_json,
61+
"LoadCoreTime should not be present in a live, non-coredump target",
62+
)
5863
expressionEvaluation = stats_json["expressionEvaluation"]
5964
self.assertIn(
6065
"successes",

0 commit comments

Comments
 (0)