[Lldb-commits] [lldb] r124196 - /lldb/trunk/test/threads/TestPrintStackTraces.py

Johnny Chen johnny.chen at apple.com
Tue Jan 25 09:17:45 PST 2011


Author: johnny
Date: Tue Jan 25 11:17:45 2011
New Revision: 124196

URL: http://llvm.org/viewvc/llvm-project?rev=124196&view=rev
Log:
Fix wrong order of "import lldbutil" statement and its usage in the failure case.

Modified:
    lldb/trunk/test/threads/TestPrintStackTraces.py

Modified: lldb/trunk/test/threads/TestPrintStackTraces.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/threads/TestPrintStackTraces.py?rev=124196&r1=124195&r2=124196&view=diff
==============================================================================
--- lldb/trunk/test/threads/TestPrintStackTraces.py (original)
+++ lldb/trunk/test/threads/TestPrintStackTraces.py Tue Jan 25 11:17:45 2011
@@ -40,12 +40,12 @@
         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)
 
 





More information about the lldb-commits mailing list