[lld] 22cbe40 - Slightly relax the regex on lld version in test (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 14:41:01 PDT 2020
Author: Mehdi Amini
Date: 2020-08-15T21:38:02Z
New Revision: 22cbe40fa99795766f352c08a7c0748704c9d2d5
URL: https://github.com/llvm/llvm-project/commit/22cbe40fa99795766f352c08a7c0748704c9d2d5
DIFF: https://github.com/llvm/llvm-project/commit/22cbe40fa99795766f352c08a7c0748704c9d2d5.diff
LOG: Slightly relax the regex on lld version in test (NFC)
This makes the test introduced in 537f5483fe4e more robust with respect
to the actual version number. The previous regex restricted the version
to start with a leading `1` which was overly restrictive.
Added:
Modified:
lld/test/MachO/lc-build-version.s
Removed:
################################################################################
diff --git a/lld/test/MachO/lc-build-version.s b/lld/test/MachO/lc-build-version.s
index 99e0ccd9992b..c1b93b987339 100644
--- a/lld/test/MachO/lc-build-version.s
+++ b/lld/test/MachO/lc-build-version.s
@@ -10,7 +10,7 @@
# CHECK-NEXT: minos 10.14.1
# CHECK-NEXT: ntools 1
# CHECK-NEXT: tool ld
-# CHECK-NEXT: version {{[1-9][0-9]\.[0-9]+}}
+# CHECK-NEXT: version {{[0-9\.]+}}
# CHECK-NEXT: Load command [[#]]
.text
More information about the llvm-commits
mailing list