From c5789434ff0692d261c858664283d9231228bec7 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 1 Mar 2017 10:08:48 +0000 Subject: Switch SBBreakpointLocation to use a weak_ptr llvm-svn: 296594 --- .../Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py') diff --git a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py index a5bf5db1736..4bd4781c7ef 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py @@ -69,6 +69,9 @@ class BreakpointAPITestCase(TestBase): self.assertTrue(breakpoint and breakpoint.GetNumLocations() == 1, VALID_BREAKPOINT) + location = breakpoint.GetLocationAtIndex(0) + self.assertTrue(location.IsValid()) self.assertTrue(self.dbg.DeleteTarget(target)) self.assertFalse(breakpoint.IsValid()) + self.assertFalse(location.IsValid()) -- cgit v1.2.3