Added test for a previously fixed bug where invoking lldb command from an emacs
shell and issuing 'help' would hang (was actually infinitely looping).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107066 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/help/TestHelp.py b/test/help/TestHelp.py
index 56c0777..70e496f 100644
--- a/test/help/TestHelp.py
+++ b/test/help/TestHelp.py
@@ -18,7 +18,18 @@
     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'))