[llvm-commits] CVS: llvm/test/lib/llvm.exp
Reid Spencer
reid at x10sys.com
Sun Apr 22 07:14:29 PDT 2007
Changes in directory llvm/test/lib:
llvm.exp updated: 1.21 -> 1.22
---
Log message:
Fix the comparison of language names to accept any characters by using
"string first" instead of "regexp match". This helps C++ tests get executed.
---
Diffs of the changes: (+1 -1)
llvm.exp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/test/lib/llvm.exp
diff -u llvm/test/lib/llvm.exp:1.21 llvm/test/lib/llvm.exp:1.22
--- llvm/test/lib/llvm.exp:1.21 Sat Apr 21 16:45:51 2007
+++ llvm/test/lib/llvm.exp Sun Apr 22 09:14:11 2007
@@ -207,7 +207,7 @@
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
More information about the llvm-commits
mailing list