[Lldb-commits] [lldb] r107066 - /lldb/trunk/test/help/TestHelp.py

Johnny Chen johnny.chen at apple.com
Mon Jun 28 13:55:57 PDT 2010


Author: johnny
Date: Mon Jun 28 15:55:57 2010
New Revision: 107066

URL: http://llvm.org/viewvc/llvm-project?rev=107066&view=rev
Log:
Added test for a previously fixed bug where invoking lldb command from an emacs
shell and issuing 'help' would hang (was actually infinitely looping).

Modified:
    lldb/trunk/test/help/TestHelp.py

Modified: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=107066&r1=107065&r2=107066&view=diff
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py Mon Jun 28 15:55:57 2010
@@ -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'))





More information about the lldb-commits mailing list