aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/thread
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/thread
parent5bf2409a4e4d23018ecffe4eff39988a957e76f7 (diff)
downloadllvm-b321b429416ec51691a3c5372cb59912bded5f08.zip
llvm-b321b429416ec51691a3c5372cb59912bded5f08.tar.gz
llvm-b321b429416ec51691a3c5372cb59912bded5f08.tar.bz2
[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/thread')
-rw-r--r--lldb/test/API/python_api/thread/TestThreadAPI.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/python_api/thread/TestThreadAPI.py b/lldb/test/API/python_api/thread/TestThreadAPI.py
index 144f062..2101527 100644
--- a/lldb/test/API/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/API/python_api/thread/TestThreadAPI.py
@@ -100,7 +100,7 @@ class ThreadAPITestCase(TestBase):
self.runCmd("process status")
proc_of_thread = thread.GetProcess()
- #print("proc_of_thread:", proc_of_thread)
+ self.trace("proc_of_thread:", proc_of_thread)
self.assertTrue(proc_of_thread.GetProcessID()
== process.GetProcessID())