[Lldb-commits] [lldb] r120719 - /lldb/trunk/test/types/AbstractBase.py

Johnny Chen johnny.chen at apple.com
Thu Dec 2 10:03:37 PST 2010


Author: johnny
Date: Thu Dec  2 12:03:37 2010
New Revision: 120719

URL: http://llvm.org/viewvc/llvm-project?rev=120719&view=rev
Log:
On second thought, inserting a delay of 1.0 second slows down the test suite
for the types directory quite a bit and masking out potential problems.  Enable
the delay via an environment variable, instead.

Modified:
    lldb/trunk/test/types/AbstractBase.py

Modified: lldb/trunk/test/types/AbstractBase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/AbstractBase.py?rev=120719&r1=120718&r2=120719&view=diff
==============================================================================
--- lldb/trunk/test/types/AbstractBase.py (original)
+++ lldb/trunk/test/types/AbstractBase.py Thu Dec  2 12:03:37 2010
@@ -114,7 +114,15 @@
         # 'expr var'.
         for var, val in gl:
             # Don't overwhelm the expression mechanism.
-            time.sleep(1.0)
+            # This slows down the test suite quite a bit, to enable it, define
+            # the environment variable LLDB_TYPES_EXPR_TIME_WAIT.  For example:
+            #
+            #     export LLDB_TYPES_EXPR_TIME_WAIT=0.5
+            #
+            # causes a 0.5 second delay between 'expression' commands.
+            if "LLDB_TYPES_EXPR_TIME_WAIT" in os.environ:
+                time.sleep(float(os.environ["LLDB_TYPES_EXPR_TIME_WAIT"]))
+
             self.runCmd("expression %s" % var)
             output = self.res.GetOutput()
             





More information about the lldb-commits mailing list