summaryrefslogtreecommitdiffstats
path: root/lldb/test/help/TestHelp.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-05-07 23:04:49 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-05-07 23:04:49 +0000
commit5ec8fcbf0c3056a9b0257c6754ce4987e8cbe613 (patch)
tree3b29329f55877694a8d44ee7869e593504099a4e /lldb/test/help/TestHelp.py
parentddb149069e1db395a404551a044c7786cad0e4c6 (diff)
downloadbcm5719-llvm-5ec8fcbf0c3056a9b0257c6754ce4987e8cbe613.tar.gz
bcm5719-llvm-5ec8fcbf0c3056a9b0257c6754ce4987e8cbe613.zip
Fix the problem that 'help breakpoint set' is printing a lot of redundant lines.
Correctly specify the LLDB_OPT_SET's that the 'shlib' command option belongs to by using a newly added macro like this: #define LLDB_OPT_NOT_10 ( LLDB_OPT_SET_FROM(1, 10) & ~LLDB_OPT_SET_10 ) rdar://problem/11393864 llvm-svn: 156337
Diffstat (limited to 'lldb/test/help/TestHelp.py')
-rw-r--r--lldb/test/help/TestHelp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index 57e67362fae..6ad976ceb81 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -86,6 +86,12 @@ class HelpCommandTestCase(TestBase):
self.expect("help",
startstr = 'The following is a list of built-in, permanent debugger commands')
+ def test_help_breakpoint_set(self):
+ """Test that 'help breakpoint set' does not print out redundant lines of:
+ 'breakpoint set [-s <shlib-name>] ...'."""
+ self.expect("help breakpoint set", matching=False,
+ substrs = ['breakpoint set [-s <shlib-name>]'])
+
def test_help_image_dump_symtab_should_not_crash(self):
"""Command 'help image dump symtab' should not crash lldb."""
# 'image' is an alias for 'target modules'.
OpenPOWER on IntegriCloud