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

Johnny Chen johnny.chen at apple.com
Mon Nov 29 12:20:34 PST 2010


Author: johnny
Date: Mon Nov 29 14:20:34 2010
New Revision: 120315

URL: http://llvm.org/viewvc/llvm-project?rev=120315&view=rev
Log:
Change the variable TestBase.timeWait to the more descriptive timeWaitNextLaunch.
Increase the delta between successive test cases, enabled with the '-w' option to
the test driver, from 0.5 to 1.0 second, to arrive at a cleaner state before the
next test case.

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=120315&r1=120314&r2=120315&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Mon Nov 29 14:20:34 2010
@@ -392,7 +392,7 @@
 
     # Time to wait before the next launching attempt in second(s).
     # Can be overridden by the LLDB_TIME_WAIT_NEXT_LAUNCH environment variable.
-    timeWait = 1.0;
+    timeWaitNextLaunch = 1.0;
 
     # Keep track of the old current working directory.
     oldcwd = None
@@ -451,13 +451,13 @@
 
         if ("LLDB_WAIT_BETWEEN_TEST_CASES" in os.environ and
             os.environ["LLDB_WAIT_BETWEEN_TEST_CASES"] == 'YES'):
-            time.sleep(0.5)
+            time.sleep(1.0)
 
         if "LLDB_MAX_LAUNCH_COUNT" in os.environ:
             self.maxLaunchCount = int(os.environ["LLDB_MAX_LAUNCH_COUNT"])
 
         if "LLDB_TIME_WAIT_NEXT_LAUNCH" in os.environ:
-            self.timeWait = float(os.environ["LLDB_TIME_WAIT_NEXT_LAUNCH"])
+            self.timeWaitNextLaunch = float(os.environ["LLDB_TIME_WAIT_NEXT_LAUNCH"])
 
         # Create the debugger instance if necessary.
         try:
@@ -654,7 +654,7 @@
 
             if running:
                 # For process launch, wait some time before possible next try.
-                time.sleep(self.timeWait)
+                time.sleep(self.timeWaitNextLaunch)
 
             if self.res.Succeeded():
                 break





More information about the lldb-commits mailing list