From 65045f216817dba87f45fa105bf76ae05b21c02e Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 8 Oct 2010 17:21:27 +0000 Subject: o TestStdCXXDisassembly.py: Update the expected match string. o lldbtest.py: Indicate when a command fails, even if there is nothing in the error stream. o TestHelp.py: Add a regression test case for 'help image dump symtab'. o CommandObjectHelp.cpp: Some of the logic branches with successful help command results were not tagged with a Success Status. They are fixed now. This is important for Python interaction. llvm-svn: 116062 --- lldb/test/help/TestHelp.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lldb/test/help/TestHelp.py') diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py index 49d857aa660..84b1eb0d302 100644 --- a/lldb/test/help/TestHelp.py +++ b/lldb/test/help/TestHelp.py @@ -1,5 +1,5 @@ """ -Test lldb help command. +Test some lldb help commands. See also CommandInterpreter::OutputFormattedHelpText(). """ @@ -24,6 +24,12 @@ class HelpCommandTestCase(TestBase): self.expect("help", startstr = 'The following is a list of built-in, permanent debugger commands') + def test_help_image_dump_symtab_should_not_crash(self): + """Command 'help image dump symtab' should not crash lldb.""" + self.expect("help image dump symtab", + substrs = ['image dump symtab', + 'sort-order']) + if __name__ == '__main__': import atexit -- cgit v1.2.3