summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
diff options
context:
space:
mode:
authorSYNOPSYS\georgiev <georgiev@synopsys.com>2021-11-17 08:37:30 +0000
committerSYNOPSYS\georgiev <georgiev@synopsys.com>2021-11-17 08:37:30 +0000
commit9f0b5f9a39ea6e70c98c69a720d7e4f5d3800bf6 (patch)
tree76a4d3ec2f9746997dc94830c70d68897af9d16e /lldb/test/API/functionalities/load_unload/TestLoadUnload.py
parentf5ca3ac748af2c88736212d7dbc105d99ac721c1 (diff)
[lldb/test] Added lldbutil function to test a breakpoint
Testing the breakpoint itself rather than the lldb string. Differential Revision: https://reviews.llvm.org/D111899
Diffstat (limited to 'lldb/test/API/functionalities/load_unload/TestLoadUnload.py')
-rw-r--r--lldb/test/API/functionalities/load_unload/TestLoadUnload.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
index 488a6922b231..9f4a99dc69de 100644
--- a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
@@ -316,8 +316,7 @@ class LoadUnloadTestCase(TestBase):
'stop reason = breakpoint'])
# The breakpoint should have a hit count of 1.
- self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
- substrs=[' resolved, hit count = 1'])
+ lldbutil.check_breakpoint(self, bpno = 1, expected_hit_count = 1)
# Issue the 'continue' command. We should stop agaian at a_function.
# The stop reason of the thread should be breakpoint and at a_function.
@@ -331,8 +330,7 @@ class LoadUnloadTestCase(TestBase):
'stop reason = breakpoint'])
# The breakpoint should have a hit count of 2.
- self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
- substrs=[' resolved, hit count = 2'])
+ lldbutil.check_breakpoint(self, bpno = 1, expected_hit_count = 2)
def test_step_over_load(self):
self.setSvr4Support(False)