diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-05-25 10:59:39 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-05-25 11:11:46 -0700 |
| commit | b321b429416ec51691a3c5372cb59912bded5f08 (patch) | |
| tree | bd51fd5ca6cdd24d345e9eb93b1c1d4c7932c441 /lldb/test/API/python_api/thread | |
| parent | 5bf2409a4e4d23018ecffe4eff39988a957e76f7 (diff) | |
| download | llvm-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.py | 2 |
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()) |
