Fix wrong order of "import lldbutil" statement and its usage in the failure case.
llvm-svn: 124196
This commit is contained in:
parent
a343545229
commit
109941b078
|
@ -40,12 +40,12 @@ class ThreadsStackTracesTestCase(TestBase):
|
|||
if not rc.Success() or not self.process.IsValid():
|
||||
self.fail("SBTarget.LaunchProcess() failed")
|
||||
|
||||
import lldbutil
|
||||
if self.process.GetState() != lldb.eStateStopped:
|
||||
self.fail("Process should be in the 'stopped' state, "
|
||||
"instead the actual state is: '%s'" %
|
||||
lldbutil.StateTypeString(self.process.GetState()))
|
||||
|
||||
import lldbutil
|
||||
lldbutil.PrintStackTraces(self.process)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue