diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-12-01 19:10:59 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-12-01 19:10:59 +0000 |
| commit | 5237e90cbe8f05e63df2cfb8fc07caf82a172666 (patch) | |
| tree | 553f9d044ff417228fca9715ac05c8e234ab1793 /lldb/test/help/TestHelp.py | |
| parent | b5c9cc54d3b47ae5c5ae1fc3caa3004b51e7dc00 (diff) | |
| download | bcm5719-llvm-5237e90cbe8f05e63df2cfb8fc07caf82a172666.tar.gz bcm5719-llvm-5237e90cbe8f05e63df2cfb8fc07caf82a172666.zip | |
Add test cases to test that:
1. 'help image du sym' is ambiguous.
2. 'help image du line' is not ambiguous.
llvm-svn: 120587
Diffstat (limited to 'lldb/test/help/TestHelp.py')
| -rw-r--r-- | lldb/test/help/TestHelp.py | 13 |
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 |

