[Lldb-commits] [lldb] r229137 - Fix test_lldbmi_prompt test by enabling ShowPrompt in CMICmnStreamStdin by default

Ilia K ki.stfu at gmail.com
Fri Feb 13 11:11:40 PST 2015


Author: ki.stfu
Date: Fri Feb 13 13:11:39 2015
New Revision: 229137

URL: http://llvm.org/viewvc/llvm-project?rev=229137&view=rev
Log:
Fix test_lldbmi_prompt test by enabling ShowPrompt in CMICmnStreamStdin by default


Modified:
    lldb/trunk/test/tools/lldb-mi/TestMiNotification.py
    lldb/trunk/tools/lldb-mi/MICmnStreamStdin.cpp

Modified: lldb/trunk/test/tools/lldb-mi/TestMiNotification.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiNotification.py?rev=229137&r1=229136&r2=229137&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiNotification.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiNotification.py Fri Feb 13 13:11:39 2015
@@ -10,7 +10,6 @@ class MiNotificationTestCase(lldbmi_test
 
     @lldbmi_test
     @expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
-    @unittest2.skip("lldb-mi doesn't print prompt in all cases")
     def test_lldbmi_prompt(self):
         """Test that 'lldb-mi --interpreter' echos '(gdb)' after commands and events."""
 

Modified: lldb/trunk/tools/lldb-mi/MICmnStreamStdin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnStreamStdin.cpp?rev=229137&r1=229136&r2=229137&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnStreamStdin.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnStreamStdin.cpp Fri Feb 13 13:11:39 2015
@@ -46,7 +46,7 @@ CMICmnStreamStdin::CMICmnStreamStdin(voi
     , m_pVisitor(nullptr)
     , m_strPromptCurrent("(gdb)")
     , m_bKeyCtrlCHit(false)
-    , m_bShowPrompt(false)
+    , m_bShowPrompt(true)
     , m_bRedrawPrompt(true)
     , m_pStdinReadHandler(nullptr)
 {





More information about the lldb-commits mailing list