[Lldb-commits] [lldb] r144945 - /lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py
Johnny Chen
johnny.chen at apple.com
Thu Nov 17 16:30:58 PST 2011
Author: johnny
Date: Thu Nov 17 18:30:58 2011
New Revision: 144945
URL: http://llvm.org/viewvc/llvm-project?rev=144945&view=rev
Log:
Do not print debug messages if self.TraceON() is False.
Modified:
lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py
Modified: lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py?rev=144945&r1=144944&r2=144945&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py (original)
+++ lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py Thu Nov 17 18:30:58 2011
@@ -71,7 +71,8 @@
# The 10 in range(10) is just an arbitrary number, which means we would
# like to try for at most 10 times.
for j in range(10):
- print "j is: ", j
+ if self.TraceOn():
+ print "j is: ", j
thread = process.GetThreadAtIndex(0)
if thread.GetNumFrames() >= 2:
@@ -103,13 +104,18 @@
# executable, sets the breakpoint on c(), and adds the callback for the
# breakpoint such that lldb only stops when the caller of c() is a().
# the "my" package that defines the date() function.
- print "About to source .lldb"
+ if self.TraceOn():
+ print "About to source .lldb"
+ if not self.TraceOn():
+ self.HideStdout()
self.runCmd("command source .lldb")
- print "About to run."
+ if self.TraceOn():
+ print "About to run."
self.runCmd("run", RUN_SUCCEEDED)
- print "Done running"
+ if self.TraceOn():
+ print "Done running"
# The stop reason of the thread should be breakpoint.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
More information about the lldb-commits
mailing list