Fix lit for people whose LLVM path contains 'opt', which is a common directory name on Unix-like systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122873 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lit.cfg b/test/lit.cfg
index 7ec23e3..fef6d78 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -176,9 +176,9 @@
r"\bllvm-stub\b", r"\bllvm2cpp\b",
# Don't match '-llvmc'.
r"(?<!-)\bllvmc\b", r"\blto\b",
- # Don't match '.opt', '-opt'
- # or '^opt'.
- r"\bmacho-dump\b", r"(?<!\.|-|\^)\bopt\b",
+ # Don't match '.opt', '-opt',
+ # '^opt' or '/opt'.
+ r"\bmacho-dump\b", r"(?<!\.|-|\^|/)\bopt\b",
r"\btblgen\b", r"\bFileCheck\b",
r"\bFileUpdate\b", r"\bc-index-test\b",
r"\bfpcmp\b", r"\bllvm-PerfectShuffle\b",