diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-12-14 01:36:04 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-14 01:36:04 +0000 |
| commit | 798b0c8340bf70f18ce07a0926f78eb0eb567fff (patch) | |
| tree | 34b4dc7be5d3323227d9f1c458d585de034ed0f2 | |
| parent | 4020ae75ea74813a76aafab31b357c0529fbfa88 (diff) | |
| download | bcm5719-llvm-798b0c8340bf70f18ce07a0926f78eb0eb567fff.tar.gz bcm5719-llvm-798b0c8340bf70f18ce07a0926f78eb0eb567fff.zip | |
Print out the breakpoint description only if self.TraceOn() is True.
llvm-svn: 146539
| -rw-r--r-- | lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py b/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py index 768b9b6c632..3fe24e29ea4 100644 --- a/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py +++ b/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py @@ -39,7 +39,8 @@ class ExprDoesntDeadlockTestCase(TestBase): main_file_spec = lldb.SBFileSpec ("locking.c") breakpoint = target.BreakpointCreateBySourceRegex('Break here', main_file_spec) - print "breakpoint:", breakpoint + if self.TraceOn(): + print "breakpoint:", breakpoint self.assertTrue(breakpoint and breakpoint.GetNumLocations() == 1, VALID_BREAKPOINT) |

