[Lldb-commits] [lldb] r123806 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Tue Jan 18 18:02:09 PST 2011


Author: johnny
Date: Tue Jan 18 20:02:08 2011
New Revision: 123806

URL: http://llvm.org/viewvc/llvm-project?rev=123806&view=rev
Log:
The test suite was unnecessarily doing a time.sleep() after performing the
"process launch" or "run" interpreter command.  Let's do the sleep only if
the process launch failed.  This saves about 135 seconds from the whole test
suite run time.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=123806&r1=123805&r2=123806&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Jan 18 20:02:08 2011
@@ -701,13 +701,11 @@
                     print >> sbuf, "runCmd failed!"
                     print >> sbuf, self.res.GetError()
 
-            if running:
-                # For process launch, wait some time before possible next try.
-                time.sleep(self.timeWaitNextLaunch)
-
             if self.res.Succeeded():
                 break
             elif running:
+                # For process launch, wait some time before possible next try.
+                time.sleep(self.timeWaitNextLaunch)
                 with recording(self, True) as sbuf:
                     print >> sbuf, "Command '" + cmd + "' failed!"
 





More information about the lldb-commits mailing list