From 7a1d34bec08f6735cd43c9a486136bc0bab1d171 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 28 Feb 2017 12:32:45 +0000 Subject: Switch SBWatchpoint to use a weak_ptr to the underlying object llvm-svn: 296470 --- .../Python/lldbsuite/test/python_api/watchpoint/TestSetWatchpoint.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/python_api/watchpoint') diff --git a/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/TestSetWatchpoint.py b/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/TestSetWatchpoint.py index e4f2c5c7a18..bc925ee693d 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/TestSetWatchpoint.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/watchpoint/TestSetWatchpoint.py @@ -108,3 +108,6 @@ class SetWatchpointAPITestCase(TestBase): self.assertTrue( process.GetState() == lldb.eStateExited, PROCESS_EXITED) + + self.dbg.DeleteTarget(target) + self.assertFalse(watchpoint.IsValid()) -- cgit v1.2.3