[Lldb-commits] [lldb] r227906 - Allow customizing the timeout of the inferior

Enrico Granata egranata at apple.com
Mon Feb 2 17:06:36 PST 2015


Author: enrico
Date: Mon Feb  2 19:06:35 2015
New Revision: 227906

URL: http://llvm.org/viewvc/llvm-project?rev=227906&view=rev
Log:
Allow customizing the timeout of the inferior

Modified:
    lldb/trunk/test/lldbpexpect.py

Modified: lldb/trunk/test/lldbpexpect.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbpexpect.py?rev=227906&r1=227905&r2=227906&view=diff
==============================================================================
--- lldb/trunk/test/lldbpexpect.py (original)
+++ lldb/trunk/test/lldbpexpect.py Mon Feb  2 19:06:35 2015
@@ -16,9 +16,11 @@ class PExpectTest(TestBase):
     def launchArgs(self):
         pass
 
-    def launch(self):
-        self.timeout = 5
+    def launch(self, timeout=None):
+        if timeout is None: timeout = 30
         self.child = pexpect.spawn('%s %s' % (self.lldbHere, self.launchArgs()))
+        self.child.timeout = timeout
+        self.timeout = timeout
 
     def expect(self, patterns=None, timeout=None, exact=None):
         if patterns is None: return None





More information about the lldb-commits mailing list