diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/help/TestHelp.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/help/TestHelp.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py index 92bb9fa5f21..ce0682d8f24 100644 --- a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py +++ b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py @@ -198,3 +198,16 @@ class HelpCommandTestCase(TestBase): "Try 'help' to see a current list of commands.", "Try 'apropos thisisnotadebuggercommand' for a list of related commands.", "Try 'type lookup thisisnotadebuggercommand' for information on types, methods, functions, modules, etc."]) + + @no_debug_info_test + def test_custom_help_alias(self): + """Test that aliases pick up custom help text.""" + def cleanup(): + self.runCmd('command unalias afriendlyalias', check=False) + self.runCmd('command unalias averyfriendlyalias', check=False) + + self.addTearDownHook(cleanup) + self.runCmd('command alias --help "I am a friendly alias" -- afriendlyalias help') + self.expect("help afriendlyalias", matching=True, substrs = ['I am a friendly alias']) + self.runCmd('command alias --long-help "I am a very friendly alias" -- averyfriendlyalias help') + self.expect("help averyfriendlyalias", matching=True, substrs = ['I am a very friendly alias']) |