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

Johnny Chen johnny.chen at apple.com
Thu Feb 9 11:34:26 PST 2012


Author: johnny
Date: Thu Feb  9 13:34:25 2012
New Revision: 150198

URL: http://llvm.org/viewvc/llvm-project?rev=150198&view=rev
Log:
Setting terminal type to 'xterm' on Darwin; otherwise, to 'vt100'.

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=150198&r1=150197&r2=150198&view=diff
==============================================================================
--- lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py (original)
+++ lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py Thu Feb  9 13:34:25 2012
@@ -40,7 +40,10 @@
         if self.TraceOn():
             child.logfile = sys.stdout
 
-        child.sendline('set env(TERM) xterm')
+        if sys.platform.startswith("darwin"):
+            child.sendline('set env(TERM) xterm')
+        else:
+            child.sendline('set env(TERM) vt100')
         child.expect(expect_prompt)
         child.sendline('puts $env(TERM)')
         child.expect(expect_prompt)





More information about the lldb-commits mailing list