diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
| commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
| tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /packages/Python/lldbsuite/test/python_api/frame/inlines | |
| parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) | |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/python_api/frame/inlines')
| -rw-r--r-- | packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py b/packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py index d4cf8fe30ccd..ee6c33f54314 100644 --- a/packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py +++ b/packages/Python/lldbsuite/test/python_api/frame/inlines/TestInlinedFrame.py @@ -9,8 +9,9 @@ from __future__ import print_function  import os, time  import re  import lldb -import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import *  from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil  class InlinedFrameAPITestCase(TestBase): @@ -60,7 +61,10 @@ class InlinedFrameAPITestCase(TestBase):          #          #     outer_inline (argc);          # -        frame0 = process.GetThreadAtIndex(0).GetFrameAtIndex(0) +        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint) +        self.assertIsNotNone(thread) + +        frame0 = thread.GetFrameAtIndex(0)          if frame0.IsInlined():              filename = frame0.GetLineEntry().GetFileSpec().GetFilename()              self.assertTrue(filename == self.source) | 
