[Lldb-commits] [lldb] r120587 - /lldb/trunk/test/help/TestHelp.py
Johnny Chen
johnny.chen at apple.com
Wed Dec 1 11:10:59 PST 2010
Author: johnny
Date: Wed Dec 1 13:10:59 2010
New Revision: 120587
URL: http://llvm.org/viewvc/llvm-project?rev=120587&view=rev
Log:
Add test cases to test that:
1. 'help image du sym' is ambiguous.
2. 'help image du line' is not ambiguous.
Modified:
lldb/trunk/test/help/TestHelp.py
Modified: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=120587&r1=120586&r2=120587&view=diff
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py Wed Dec 1 13:10:59 2010
@@ -30,6 +30,19 @@
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
More information about the lldb-commits
mailing list