[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
This commit is contained in:
@@ -25,7 +25,7 @@ class BreakpointAPITestCase(TestBase):
|
||||
|
||||
# Now create a breakpoint on main.c by name 'AFunction'.
|
||||
breakpoint = target.BreakpointCreateByName('AFunction', 'a.out')
|
||||
#print("breakpoint:", breakpoint)
|
||||
self.trace("breakpoint:", breakpoint)
|
||||
self.assertTrue(breakpoint and
|
||||
breakpoint.GetNumLocations() == 1,
|
||||
VALID_BREAKPOINT)
|
||||
@@ -59,7 +59,7 @@ class BreakpointAPITestCase(TestBase):
|
||||
|
||||
# Now create a breakpoint on main.c by name 'AFunction'.
|
||||
breakpoint = target.BreakpointCreateByName('AFunction', 'a.out')
|
||||
#print("breakpoint:", breakpoint)
|
||||
self.trace("breakpoint:", breakpoint)
|
||||
self.assertTrue(breakpoint and
|
||||
breakpoint.GetNumLocations() == 1,
|
||||
VALID_BREAKPOINT)
|
||||
|
||||
Reference in New Issue
Block a user