aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-22 14:14:11 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-22 14:14:11 +0000
commit3dc662c5dbd60d49b6b680816cd3a5556a8544e3 (patch)
tree13cfa0d1206511902ae2964a75570402d2d88d7b /test/lib
parent8dadf6b13a7cdd5b5b30c3b7af310c9756e4c68e (diff)
Fix the comparison of language names to accept any characters by using
"string first" instead of "regexp match". This helps C++ tests get executed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 3ed44d709a..e724506453 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -207,7 +207,7 @@ proc llvm_gcc_supports { lang } {
fortran { set file fcc1 }
default { return 0 }
}
- if { [ regexp $lang $llvmgcc_langs match ] } {
+ if { [ string first "$lang" "$llvmgcc_langs" ] >= 0 } {
# FIXME: Knowing it is configured is not enough. We should do two more
# checks here. First, we need to run llvm-gcc -print-prog-name=$file to get
# the path to the compiler. If we don't get a path, the language isn't