summaryrefslogtreecommitdiffstats
path: root/lldb/test/help/TestHelp.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-06-28 20:55:57 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-06-28 20:55:57 +0000
commit7e363f55716271bb1e12d10ad4d29379709b9429 (patch)
treecd41c16208bc94614479d238769f917eff2c3a93 /lldb/test/help/TestHelp.py
parentd10b2af260a0bbbd6c2fac319252dcf6e36416f0 (diff)
downloadbcm5719-llvm-7e363f55716271bb1e12d10ad4d29379709b9429.tar.gz
bcm5719-llvm-7e363f55716271bb1e12d10ad4d29379709b9429.zip
Added test for a previously fixed bug where invoking lldb command from an emacs
shell and issuing 'help' would hang (was actually infinitely looping). llvm-svn: 107066
Diffstat (limited to 'lldb/test/help/TestHelp.py')
-rw-r--r--lldb/test/help/TestHelp.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index 56c0777b52e..70e496fde55 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -18,7 +18,18 @@ class TestHelpCommand(unittest.TestCase):
def test_simplehelp(self):
"""A simple test of 'help' command and its output."""
res = lldb.SBCommandReturnObject()
- self.ci.HandleCommand("help", res, False)
+ self.ci.HandleCommand("help", res)
+ self.assertTrue(res.Succeeded())
+ self.assertTrue(res.GetOutput().startswith(
+ 'The following is a list of built-in, permanent debugger commands'))
+ #print res.GetOutput()
+
+ def test_help_should_not_hang_emacsshell(self):
+ """'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())
+ self.ci.HandleCommand("help", res)
self.assertTrue(res.Succeeded())
self.assertTrue(res.GetOutput().startswith(
'The following is a list of built-in, permanent debugger commands'))
OpenPOWER on IntegriCloud