diff options
author | Jim Ingham <jingham@apple.com> | 2018-12-21 01:45:28 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2018-12-21 01:45:28 +0000 |
commit | 79d8105fc80b866358c7175aab9bcd4a3e7ac974 (patch) | |
tree | 5995f80152d5f98e4bc249f4ce0f191dd35d5d94 /lldb/packages/Python/lldbsuite/test/help | |
parent | b894ecf9033e2d205fd8c5b82fe7b7df7f8dca7c (diff) | |
download | bcm5719-llvm-79d8105fc80b866358c7175aab9bcd4a3e7ac974.tar.gz bcm5719-llvm-79d8105fc80b866358c7175aab9bcd4a3e7ac974.zip |
"help finish" tells you it is an alias. "help fin" doesn't.
They both run the same command, and people get used to typing the shortest
string they can, so we should support alias info on shortened strings as well.
<rdar://problem/46859207>
llvm-svn: 349874
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/help')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/help/TestHelp.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py index 2b89b49a622..7d66b08b86a 100644 --- a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py +++ b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py @@ -231,6 +231,17 @@ class HelpCommandTestCase(TestBase): self.expect("help averyfriendlyalias", matching=True, substrs=['I am a very friendly alias']) @no_debug_info_test + def test_alias_prints_origin(self): + """Test that 'help <unique_match_to_alias>' prints the alias origin.""" + def cleanup(): + self.runCmd('command unalias alongaliasname', check=False) + + self.addTearDownHook(cleanup) + self.runCmd('command alias alongaliasname help') + self.expect("help alongaliasna", matching=True, + substrs=["'alongaliasna' is an abbreviation for 'help'"]) + + @no_debug_info_test def test_help_format_output(self): """Test that help output reaches TerminalWidth.""" self.runCmd( |