llvm-project/cross-project-tests
David Stenberg ddaa590ace
[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.
2026-02-12 10:13:25 +01:00
..