Don't display the stdout if not in TraceOn(), i.e, '-t option, mode.

llvm-svn: 138458
This commit is contained in:
Johnny Chen 2011-08-24 18:19:50 +00:00
parent 6ccd79f4d5
commit 3e15c4d50b
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ class CmdPythonTestCase(TestBase):
self.runCmd("command source py_import")
# We don't want to display the stdout if not in TraceOn() mode.
if not self.TraceOn():
self.HideStdout()
self.expect('welcome Enrico',
substrs = ['Hello Enrico, welcome to LLDB']);