[all-commits] [llvm/llvm-project] ddaa59: [cross-project-tests] Fix lldb version regex (#180...

David Stenberg via All-commits all-commits at lists.llvm.org
Thu Feb 12 01:13:51 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddaa590ace950e62014e7628336354a924d407db
      https://github.com/llvm/llvm-project/commit/ddaa590ace950e62014e7628336354a924d407db
  Author: David Stenberg <david.stenberg at ericsson.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M cross-project-tests/lit.cfg.py

  Log Message:
  -----------
  [cross-project-tests] Fix lldb version regex (#180204)

The get_lldb_version_string function in the lit config used a greedy
regex that could, if using a lldb binary built with git revision output,
using a SHA that starts with a digit, result in the first digits of the
SHA being interpreted as the lldb version.

For example, if lldb emits:

    $ lldb --version
    lldb version 23.0.0git \
    (https://github.com/dstenb/llvm-project.git revision \
    7e565729e33d19d468520e7bfbb8b23a918adc9c)

the version would be interpreted as 7 rather than 23.0.0:

    Marking some LLDB LLVM data-formatter tests as unsupported: using
    version 7 whereas a version >= 1900 is required

(That check should compare towards 19.0.0, but that issue is addressed
 in an other patch.)

Resolve this by using a non-greedy matcher.

Also, include a drive-by fix of some typos.



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