Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/plugins/lit.local.cfg: Properly escape regex #4697

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/plugins/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (config.plugins_supported):
text1 = p.stdout.readline() # Ex.: "LDC - the LLVM D compiler (1.33.0-git-716f627)"
text2 = p.stdout.readline() # Ex.: " based on DMD v2.103.1 and LLVM 14.0.0"
text3 = p.stdout.readline() # Ex.: " built with LDC - the LLVM D compiler (1.33.0-beta2)"
host_version = re.compile(' built with LDC.* \(1\.([0-9]+).*\)').match(text3)
host_version = re.compile(' built with LDC.* \\(1\\.([0-9]+).*\\)').match(text3)
if (host_version and int(host_version.group(1)) >= 30): # 30 = LDC 1.30
config.available_features.add('ABI_compatible_with_host_D')

Expand Down