diff options
Diffstat (limited to 'lldb/test/bitfields/TestBitfields.py')
-rw-r--r-- | lldb/test/bitfields/TestBitfields.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/test/bitfields/TestBitfields.py b/lldb/test/bitfields/TestBitfields.py index 8adfeb181a2..9c6aa225d7d 100644 --- a/lldb/test/bitfields/TestBitfields.py +++ b/lldb/test/bitfields/TestBitfields.py @@ -84,8 +84,6 @@ class BitfieldsTestCase(TestBase): def bitfields_variable_python(self): """Use Python APIs to inspect a bitfields variable.""" - from lldbutil import StopReasonString - exe = os.path.join(os.getcwd(), "a.out") target = self.dbg.CreateTarget(exe) @@ -102,6 +100,7 @@ class BitfieldsTestCase(TestBase): self.assertTrue(self.process.IsValid(), PROCESS_IS_VALID) # The stop reason of the thread should be breakpoint. + from lldbutil import StopReasonString thread = target.GetProcess().GetThreadAtIndex(0) self.assertTrue(thread.GetStopReason() == lldb.eStopReasonBreakpoint, STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS % StopReasonString(thread.GetStopReason())) |