[Lldb-commits] [lldb] r227936 - Make it easier to see what's going on by tracing the test case

Enrico Granata egranata at apple.com
Mon Feb 2 18:46:37 PST 2015


Author: enrico
Date: Mon Feb  2 20:46:36 2015
New Revision: 227936

URL: http://llvm.org/viewvc/llvm-project?rev=227936&view=rev
Log:
Make it easier to see what's going on by tracing the test case

Modified:
    lldb/trunk/test/lldbpexpect.py

Modified: lldb/trunk/test/lldbpexpect.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbpexpect.py?rev=227936&r1=227935&r2=227936&view=diff
==============================================================================
--- lldb/trunk/test/lldbpexpect.py (original)
+++ lldb/trunk/test/lldbpexpect.py Mon Feb  2 20:46:36 2015
@@ -18,7 +18,8 @@ class PExpectTest(TestBase):
 
     def launch(self, timeout=None):
         if timeout is None: timeout = 30
-        self.child = pexpect.spawn('%s %s' % (self.lldbHere, self.launchArgs()))
+        logfile = sys.stdout if self.TraceOn() else None
+        self.child = pexpect.spawn('%s %s' % (self.lldbHere, self.launchArgs()), logfile=logfile)
         self.child.timeout = timeout
         self.timeout = timeout
 





More information about the lldb-commits mailing list