diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-08-09 23:44:24 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-08-09 23:44:24 +0000 |
| commit | 1794184ada29ba245486b999249341eb19367e8a (patch) | |
| tree | d826c0ae1bd1ec2ff8db4d79d2e700bdacc2b88e /lldb/test/help/TestHelp.py | |
| parent | 5aee162f978eac7ffb6363d25b193e51edfbc0b1 (diff) | |
| download | bcm5719-llvm-1794184ada29ba245486b999249341eb19367e8a.tar.gz bcm5719-llvm-1794184ada29ba245486b999249341eb19367e8a.zip | |
Modified the remaining test cases to display more meaningful assert messages.
Added a generic message generator to the lldbtest.py base module.
llvm-svn: 110625
Diffstat (limited to 'lldb/test/help/TestHelp.py')
| -rw-r--r-- | lldb/test/help/TestHelp.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py index 91aa8b96244..e0782d667bb 100644 --- a/lldb/test/help/TestHelp.py +++ b/lldb/test/help/TestHelp.py @@ -7,9 +7,9 @@ See also CommandInterpreter::OutputFormattedHelpText(). import os, time import unittest2 import lldb -import lldbtest +from lldbtest import * -class TestHelpCommand(lldbtest.TestBase): +class TestHelpCommand(TestBase): mydir = "help" @@ -17,22 +17,24 @@ class TestHelpCommand(lldbtest.TestBase): """A simple test of 'help' command and its output.""" res = lldb.SBCommandReturnObject() self.ci.HandleCommand("help", res) - time.sleep(0.1) + #time.sleep(0.1) self.assertTrue(res.Succeeded()) self.assertTrue(res.GetOutput().startswith( - 'The following is a list of built-in, permanent debugger commands')) + 'The following is a list of built-in, permanent debugger commands'), + CMD_MSG('help')) 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) - time.sleep(0.1) - self.assertTrue(res.Succeeded()) + #time.sleep(0.1) + self.assertTrue(res.Succeeded(), CMD_MSG('set term-width 0')) self.ci.HandleCommand("help", res) - time.sleep(0.1) + #time.sleep(0.1) self.assertTrue(res.Succeeded()) self.assertTrue(res.GetOutput().startswith( - 'The following is a list of built-in, permanent debugger commands')) + 'The following is a list of built-in, permanent debugger commands'), + CMD_MSG('help')) if __name__ == '__main__': |

