summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-02-09 01:16:04 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-02-09 01:16:04 +0000
commit177df6f35c945efe5c09d9ec268de03ede7a3df6 (patch)
treef956b29904c9662a4bd108d05355b27af59e9ef0
parent26f4b32f26ffb07feafd83337d28bfa439c11586 (diff)
downloadbcm5719-llvm-177df6f35c945efe5c09d9ec268de03ede7a3df6.tar.gz
bcm5719-llvm-177df6f35c945efe5c09d9ec268de03ede7a3df6.zip
Set the terminal type to 'xterm' before doing 'stty -a'.
llvm-svn: 150127
-rw-r--r--lldb/test/terminal/TestSTTYBeforeAndAfter.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/terminal/TestSTTYBeforeAndAfter.py b/lldb/test/terminal/TestSTTYBeforeAndAfter.py
index 382b806ff7b..f08119b4cec 100644
--- a/lldb/test/terminal/TestSTTYBeforeAndAfter.py
+++ b/lldb/test/terminal/TestSTTYBeforeAndAfter.py
@@ -37,6 +37,11 @@ class CommandLineCompletionTestCase(TestBase):
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 @@ class CommandLineCompletionTestCase(TestBase):
# 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:"
OpenPOWER on IntegriCloud