summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-12-09 19:45:51 +0000
committerZachary Turner <zturner@google.com>2015-12-09 19:45:51 +0000
commit76972031fa9afe6a1a2911d20de248da15bc92ec (patch)
tree27bb5379f3d5691fb61f6176686176f5dbf70572 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent6c8733346a0f479fb5bc03aa39e131bdcbd3f457 (diff)
downloadbcm5719-llvm-76972031fa9afe6a1a2911d20de248da15bc92ec.tar.gz
bcm5719-llvm-76972031fa9afe6a1a2911d20de248da15bc92ec.zip
Remove -k command line option from dotest.py.
This is part of an effort to remove unused command line options. llvm-svn: 255143
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 7f7760b9859..23ad251a855 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1535,30 +1535,6 @@ class Base(unittest2.TestCase):
#Initialize debug_info
self.debug_info = None
- def runHooks(self, child=None, child_prompt=None, use_cmd_api=False):
- """Perform the run hooks to bring lldb debugger to the desired state.
-
- By default, expect a pexpect spawned child and child prompt to be
- supplied (use_cmd_api=False). If use_cmd_api is true, ignore the child
- and child prompt and use self.runCmd() to run the hooks one by one.
-
- Note that child is a process spawned by pexpect.spawn(). If not, your
- test case is mostly likely going to fail.
-
- See also dotest.py where lldb.runHooks are processed/populated.
- """
- if not configuration.runHooks:
- self.skipTest("No runhooks specified for lldb, skip the test")
- if use_cmd_api:
- for hook in lldb.runhooks:
- self.runCmd(hook)
- else:
- if not child or not child_prompt:
- self.fail("Both child and child_prompt need to be defined.")
- for hook in lldb.runHooks:
- child.sendline(hook)
- child.expect_exact(child_prompt)
-
def setAsync(self, value):
""" Sets async mode to True/False and ensures it is reset after the testcase completes."""
old_async = self.dbg.GetAsync()
OpenPOWER on IntegriCloud