summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/help/TestHelp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index 84b1eb0d302..f4e631d5f9a 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -30,6 +30,19 @@ class HelpCommandTestCase(TestBase):
substrs = ['image dump symtab',
'sort-order'])
+ def test_help_image_du_sym_is_ambiguous(self):
+ """Command 'help image du sym' is ambiguous and spits out the list of candidates."""
+ self.expect("help image du sym",
+ COMMAND_FAILED_AS_EXPECTED, error=True,
+ substrs = ['error: ambiguous command image du sym',
+ 'symfile',
+ 'symtab'])
+
+ def test_help_image_du_line_should_work(self):
+ """Command 'help image du line' is not ambiguous and should work."""
+ self.expect("help image du line",
+ substrs = ['Dump the debug symbol file for one or more executable images'])
+
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud