[all-commits] [llvm/llvm-project] 6d2b82: [lldb] Support ordered patterns in lldbtest.expect...

Dave Lee via All-commits all-commits at lists.llvm.org
Mon Mar 17 14:31:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d2b8285b3f5f4d8f2ce184aeb14e791400a726d
      https://github.com/llvm/llvm-project/commit/6d2b8285b3f5f4d8f2ce184aeb14e791400a726d
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2025-03-17 (Mon, 17 Mar 2025)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/lldbtest.py
    M lldb/test/API/functionalities/alias/TestBtAliasRepeat.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSContainer.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/unordered/TestDataFormatterGenericUnordered.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/span/TestDataFormatterLibcxxSpan.py
    M lldb/test/API/functionalities/data-formatter/root-reference-children/TestRootReferenceChildren.py
    M lldb/test/API/lang/cpp/signed_types/TestSignedTypes.py
    M lldb/test/API/lang/objc/foundation/TestObjCMethods.py
    M lldb/test/API/source-manager/TestSourceManager.py

  Log Message:
  -----------
  [lldb] Support ordered patterns in lldbtest.expect (#131475)

Change `lldbtest.expect` to require the regexes in `patterns` be found in order – when the
`ordered` parameter is true. This matches the behavior of `substrs`.

The `ordered` parameter is true by default, so this change also fixes tests by either
tweaking the patterns to work in order, or by setting `ordered=False`.

I have often wanted to test with `patterns` and also verify the order. This change
allows that.



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