[lldb/Test] Add a trace method to replace print statements.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 25 May 2020 17:59:39 +0000 (10:59 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 25 May 2020 18:11:46 +0000 (11:11 -0700)
commitb321b429416ec51691a3c5372cb59912bded5f08
treebd51fd5ca6cdd24d345e9eb93b1c1d4c7932c441
parent5bf2409a4e4d23018ecffe4eff39988a957e76f7
[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
23 files changed:
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/test/API/benchmarks/stepping/TestSteppingSpeed.py
lldb/test/API/commands/target/basic/TestTargetCommand.py
lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
lldb/test/API/functionalities/breakpoint/serialize/TestBreakpointSerialization.py
lldb/test/API/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
lldb/test/API/functionalities/load_unload/TestLoadUnload.py
lldb/test/API/lang/c/register_variables/TestRegisterVariables.py
lldb/test/API/lang/cpp/class_types/TestClassTypesDisassembly.py
lldb/test/API/lang/objc/blocks/TestObjCIvarsInBlocks.py
lldb/test/API/lang/objc/foundation/TestSymbolTable.py
lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py
lldb/test/API/python_api/event/TestEvents.py
lldb/test/API/python_api/frame/TestFrames.py
lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py
lldb/test/API/python_api/function_symbol/TestDisasmAPI.py
lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
lldb/test/API/python_api/target/TestTargetAPI.py
lldb/test/API/python_api/thread/TestThreadAPI.py
lldb/test/API/tools/lldb-server/TestGdbRemoteAuxvSupport.py
lldb/test/API/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
lldb/test/API/tools/lldb-server/TestGdbRemoteRegisterState.py
lldb/test/API/tools/lldb-server/TestLldbGdbServer.py