commit | 464f7dfd04b30ac550e3b5fbf836af716d6c3e06 | [log] [tgz] |
---|---|---|
author | Todd Fiala <todd.fiala@gmail.com> | Fri Apr 08 18:06:11 2016 +0000 |
committer | Todd Fiala <todd.fiala@gmail.com> | Fri Apr 08 18:06:11 2016 +0000 |
tree | 0fa89d6820c9810f16abcb4f37130854fd2bd00a | |
parent | d72e412f68de36c4da966ef4b0dd53e4017b2475 [diff] |
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
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py index bf17006..021ae2d 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbutil.py +++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -1038,6 +1038,7 @@ 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))