[Lldb-commits] [lldb] r150127 - /lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py

Johnny Chen johnny.chen at apple.com
Wed Feb 8 17:16:04 PST 2012


Author: johnny
Date: Wed Feb  8 19:16:04 2012
New Revision: 150127

URL: http://llvm.org/viewvc/llvm-project?rev=150127&view=rev
Log:
Set the terminal type to 'xterm' before doing 'stty -a'.

Modified:
    lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py

Modified: lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py?rev=150127&r1=150126&r2=150127&view=diff
==============================================================================
--- lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py (original)
+++ lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py Wed Feb  8 19:16:04 2012
@@ -37,6 +37,11 @@
         if self.TraceOn():
             child.logfile = sys.stdout
 
+        child.sendline('set env(TERM) xterm')
+        child.expect(expect_prompt)
+        child.sendline('puts $env(TERM)')
+        child.expect(expect_prompt)
+
         # Turn on loggings for input/output to/from the child.
         with open('child_send1.txt', 'w') as f_send1:
             with open('child_read1.txt', 'w') as f_read1:
@@ -73,7 +78,7 @@
         # stop further logging.
         child.logfile_send = None
         child.logfile_read = None
-        
+
         with open('child_send1.txt', 'r') as fs:
             if self.TraceOn():
                 print "\n\nContents of child_send1.txt:"





More information about the lldb-commits mailing list