summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-04-08 18:06:11 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-04-08 18:06:11 +0000
commit464f7dfd04b30ac550e3b5fbf836af716d6c3e06 (patch)
tree0fa89d6820c9810f16abcb4f37130854fd2bd00a /lldb/packages/Python
parentd72e412f68de36c4da966ef4b0dd53e4017b2475 (diff)
downloadbcm5719-llvm-464f7dfd04b30ac550e3b5fbf836af716d6c3e06.tar.gz
bcm5719-llvm-464f7dfd04b30ac550e3b5fbf836af716d6c3e06.zip
fix missing import of 'time' in lldbutil.wait_for_file_on_target
This triggers in some timeout scenarios in the LLDB test suite. Fixes: https://bugs.swift.org/browse/SR-1193 llvm-svn: 265821
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index bf170066271..021ae2db8f4 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -1038,6 +1038,7 @@ def wait_for_file_on_target(testcase, file_path, max_attempts = 6):
break
if i < max_attempts:
# Exponential backoff!
+ import time
time.sleep(pow(2, i) * 0.25)
else:
testcase.fail("File %s not found even after %d attempts." % (file_path, max_attempts))
OpenPOWER on IntegriCloud