summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-12-02 18:03:37 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-12-02 18:03:37 +0000
commit5f46b89df2cd1800e021dfe013944ac475720458 (patch)
treee1e71aa3cd33ebf472c9366facfffc61116c0d90
parent3086ddffd7ab415dc7755b76a6cf477b1927d401 (diff)
downloadbcm5719-llvm-5f46b89df2cd1800e021dfe013944ac475720458.tar.gz
bcm5719-llvm-5f46b89df2cd1800e021dfe013944ac475720458.zip
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. llvm-svn: 120719
-rw-r--r--lldb/test/types/AbstractBase.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/test/types/AbstractBase.py b/lldb/test/types/AbstractBase.py
index 7c06a44f134..c1b2248a6f7 100644
--- a/lldb/test/types/AbstractBase.py
+++ b/lldb/test/types/AbstractBase.py
@@ -114,7 +114,15 @@ class GenericTester(TestBase):
# '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()
OpenPOWER on IntegriCloud