[Lldb-commits] [lldb] r265821 - fix missing import of 'time' in lldbutil.wait_for_file_on_target

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 8 11:06:11 PDT 2016


Author: tfiala
Date: Fri Apr  8 13:06:11 2016
New Revision: 265821

URL: http://llvm.org/viewvc/llvm-project?rev=265821&view=rev
Log:
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

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/lldbutil.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbutil.py?rev=265821&r1=265820&r2=265821&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbutil.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbutil.py Fri Apr  8 13:06:11 2016
@@ -1038,6 +1038,7 @@ def wait_for_file_on_target(testcase, fi
             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))




More information about the lldb-commits mailing list