diff options
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_target.py | 8 | ||||
-rw-r--r-- | lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_target.py b/lldb/test/python_api/default-constructor/sb_target.py index 36db20fd3f0..e1a5db63cf3 100644 --- a/lldb/test/python_api/default-constructor/sb_target.py +++ b/lldb/test/python_api/default-constructor/sb_target.py @@ -40,6 +40,14 @@ def fuzz_obj(obj): obj.EnableAllBreakpoints() obj.DisableAllBreakpoints() obj.DeleteAllBreakpoints() + obj.GetNumWatchpointLocations() + obj.GetLastCreatedWatchpointLocation() + obj.GetWatchpointLocationAtIndex(0) + obj.WatchpointLocationDelete(0) + obj.FindWatchpointLocationByID(0) + obj.EnableAllWatchpointLocations() + obj.DisableAllWatchpointLocations() + obj.DeleteAllWatchpointLocations() obj.GetBroadcaster() obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelBrief) obj.Clear() diff --git a/lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py b/lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py index d54c2105333..fdaa04a18d0 100644 --- a/lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py +++ b/lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py @@ -65,7 +65,9 @@ class WatchpointLocationIteratorTestCase(TestBase): # There should be only 1 watchpoint location under the target. self.assertTrue(target.GetNumWatchpointLocations() == 1) - wp_loc = target.GetWatchpointLocationAtIndex(0) + wp_loc = target.GetWatchpointLocationAtIndex(0) + last_created = target.GetLastCreatedWatchpointLocation() + self.assertTrue(wp_loc == last_created) self.assertTrue(wp_loc.IsEnabled()) watch_id = wp_loc.GetID() self.assertTrue(watch_id != 0) |