summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-05-25 10:59:39 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-05-25 11:11:46 -0700
commitb321b429416ec51691a3c5372cb59912bded5f08 (patch)
treebd51fd5ca6cdd24d345e9eb93b1c1d4c7932c441 /lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
parent5bf2409a4e4d23018ecffe4eff39988a957e76f7 (diff)
[lldb/Test] Add a trace method to replace print statements.
Many tests use (commented out) print statement for debugging the test itself. This patch adds a new trace method to lldbtest to reuse the existing tracing infrastructure and replace these print statements. Differential revision: https://reviews.llvm.org/D80448
Diffstat (limited to 'lldb/test/API/python_api/function_symbol/TestSymbolAPI.py')
-rw-r--r--lldb/test/API/python_api/function_symbol/TestSymbolAPI.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
index 56fa73c84ad6..c5bcb152beb0 100644
--- a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
+++ b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
@@ -38,8 +38,8 @@ class SymbolAPITestCase(TestBase):
# Now create the two breakpoints inside function 'a'.
breakpoint1 = target.BreakpointCreateByLocation('main.c', self.line1)
breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
- #print("breakpoint1:", breakpoint1)
- #print("breakpoint2:", breakpoint2)
+ self.trace("breakpoint1:", breakpoint1)
+ self.trace("breakpoint2:", breakpoint2)
self.assertTrue(breakpoint1 and
breakpoint1.GetNumLocations() == 1,
VALID_BREAKPOINT)