[all-commits] [llvm/llvm-project] 666edf: [LLDB] Convert test launches with extra arguments ...

Adrian Prantl via All-commits all-commits at lists.llvm.org
Fri Sep 18 15:05:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 666edf2186f29fae04fd38cd0f93608cd0ec06e0
      https://github.com/llvm/llvm-project/commit/666edf2186f29fae04fd38cd0f93608cd0ec06e0
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py
    M lldb/test/API/functionalities/return-value/TestReturnValue.py
    M lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py
    M lldb/test/API/lang/objc/foundation/TestObjectDescriptionAPI.py
    M lldb/test/API/linux/add-symbols/TestTargetSymbolsAddCommand.py
    M lldb/test/API/linux/mix-dwo-and-regular-objects/TestMixedDwarfBinary.py
    M lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py
    M lldb/test/API/python_api/class_members/TestSBTypeClassMembers.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/symbol-context/TestSymbolContext.py
    M lldb/test/API/python_api/target/TestTargetAPI.py
    M lldb/test/API/python_api/type/TestTypeList.py
    M lldb/test/API/python_api/value/TestValueAPI.py
    M lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py
    M lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py

  Log Message:
  -----------
  [LLDB] Convert test launches with extra arguments to lldbutil (NFC) (#224412)

Replace the CreateTarget + breakpoint + LaunchSimple + stop-assert
boilerplate with the matching lldbutil.run_to_*_breakpoint helper at 19
call sites.

Besides being shorter, the helpers check that the breakpoint resolved to
at least one location and that the process stopped at that specific
breakpoint, which most of the original code did not do.

It also improves and unifies the error reporting when the launch fails.

Note for reviewers: In this patch, all invocations passed additional
arguments that needed to be carried over to the lldbutil replacement.

Assisted-by: Claude



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list