diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-08-20 19:17:39 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-08-20 19:17:39 +0000 |
| commit | 74f26b81880da1165ddac8c4b899b68b65d1d44e (patch) | |
| tree | 962ba612053ca7eb2cee81c9e4d2898d4c10f40e /lldb/test/help/TestHelp.py | |
| parent | 7110941d68c295170d36d8f21cd725bdc67957e8 (diff) | |
| download | bcm5719-llvm-74f26b81880da1165ddac8c4b899b68b65d1d44e.tar.gz bcm5719-llvm-74f26b81880da1165ddac8c4b899b68b65d1d44e.zip | |
Changed TestBase.expect() to allow default 'msg' arg. Converted TestHelp.py.
llvm-svn: 111671
Diffstat (limited to 'lldb/test/help/TestHelp.py')
| -rw-r--r-- | lldb/test/help/TestHelp.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py index 53ab9846c65..e73be7789a4 100644 --- a/lldb/test/help/TestHelp.py +++ b/lldb/test/help/TestHelp.py @@ -15,23 +15,14 @@ class TestHelpCommand(TestBase): def test_simplehelp(self): """A simple test of 'help' command and its output.""" - res = lldb.SBCommandReturnObject() - self.ci.HandleCommand("help", res) - self.assertTrue(res.Succeeded() and - res.GetOutput().startswith( - 'The following is a list of built-in, permanent debugger commands'), - CMD_MSG('help')) + self.expect("help", + startstr = 'The following is a list of built-in, permanent debugger commands') def test_help_should_not_hang_emacsshell(self): """Command 'set term-width 0' should not hang the help command.""" - res = lldb.SBCommandReturnObject() - self.ci.HandleCommand("set term-width 0", res) - self.assertTrue(res.Succeeded(), CMD_MSG('set term-width 0')) - self.ci.HandleCommand("help", res) - self.assertTrue(res.Succeeded() and - res.GetOutput().startswith( - 'The following is a list of built-in, permanent debugger commands'), - CMD_MSG('help')) + self.runCmd("set term-width 0") + self.expect("help", + startstr = 'The following is a list of built-in, permanent debugger commands') if __name__ == '__main__': |

