[all-commits] [llvm/llvm-project] b321b4: [lldb/Test] Add a trace method to replace print st...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon May 25 11:12:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b321b429416ec51691a3c5372cb59912bded5f08
      https://github.com/llvm/llvm-project/commit/b321b429416ec51691a3c5372cb59912bded5f08
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-25 (Mon, 25 May 2020)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/lldbtest.py
    M lldb/test/API/benchmarks/stepping/TestSteppingSpeed.py
    M lldb/test/API/commands/target/basic/TestTargetCommand.py
    M lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
    M lldb/test/API/functionalities/breakpoint/serialize/TestBreakpointSerialization.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
    M lldb/test/API/functionalities/load_unload/TestLoadUnload.py
    M lldb/test/API/lang/c/register_variables/TestRegisterVariables.py
    M lldb/test/API/lang/cpp/class_types/TestClassTypesDisassembly.py
    M lldb/test/API/lang/objc/blocks/TestObjCIvarsInBlocks.py
    M lldb/test/API/lang/objc/foundation/TestSymbolTable.py
    M lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py
    M lldb/test/API/python_api/event/TestEvents.py
    M lldb/test/API/python_api/frame/TestFrames.py
    M lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py
    M lldb/test/API/python_api/function_symbol/TestDisasmAPI.py
    M lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
    M lldb/test/API/python_api/target/TestTargetAPI.py
    M lldb/test/API/python_api/thread/TestThreadAPI.py
    M lldb/test/API/tools/lldb-server/TestGdbRemoteAuxvSupport.py
    M lldb/test/API/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
    M lldb/test/API/tools/lldb-server/TestGdbRemoteRegisterState.py
    M lldb/test/API/tools/lldb-server/TestLldbGdbServer.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list