aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-02-03 01:06:35 +0000
committerEnrico Granata <egranata@apple.com>2015-02-03 01:06:35 +0000
commit9c3a07984f12101a9109ed2e2afa9c2bc3d394b6 (patch)
treea77c03812ac22d374d48639c29db02d74c299fb2
parent9c58e8aac4cf811b7488406a872aaf8f2dcb04b5 (diff)
downloadllvm-9c3a07984f12101a9109ed2e2afa9c2bc3d394b6.zip
llvm-9c3a07984f12101a9109ed2e2afa9c2bc3d394b6.tar.gz
llvm-9c3a07984f12101a9109ed2e2afa9c2bc3d394b6.tar.bz2
Allow customizing the timeout of the inferior
llvm-svn: 227906
-rw-r--r--lldb/test/lldbpexpect.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/lldbpexpect.py b/lldb/test/lldbpexpect.py
index 1a73b28..aa1e220 100644
--- a/lldb/test/lldbpexpect.py
+++ b/lldb/test/lldbpexpect.py
@@ -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