Fix wrong order of "import lldbutil" statement and its usage in the failure case.

llvm-svn: 124196
This commit is contained in:
Johnny Chen 2011-01-25 17:17:45 +00:00
parent a343545229
commit 109941b078
1 changed files with 1 additions and 1 deletions

View File

@ -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)