diff options
Diffstat (limited to 'lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py')
-rw-r--r-- | lldb/test/python_api/watchpoint/TestWatchpointLocationIter.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |