diff options
Diffstat (limited to 'lldb/test/API/python_api/breakpoint')
| -rw-r--r-- | lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py b/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py index 014065e51919..da6c8959f34f 100644 --- a/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py +++ b/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py @@ -62,6 +62,9 @@ class BreakpointAPITestCase(TestBase): location = breakpoint.GetLocationAtIndex(0) self.assertTrue(location.IsValid()) + # Test negative index access. + self.assertTrue(breakpoint.location[-1].IsValid()) + # Make sure the breakpoint's target is right: self.assertEqual(target, breakpoint.GetTarget(), "Breakpoint reports its target correctly") |
