summaryrefslogtreecommitdiff
path: root/test/lib/llvm.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/llvm.exp')
-rw-r--r--test/lib/llvm.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index c5d4ffe9bf..ab7c994948 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -40,8 +40,10 @@ proc execOneLine { test PRS outcome lineno line } {
proc substitute { line test tmpFile } {
global srcroot objroot srcdir objdir subdir target_triplet prcontext
- global llvmgcc llvmgxx global llvmgcc_version llvmgccmajvers
+ global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers
global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
+ set path [file join $srcdir $subdir]
+ set tmp [file join Output $tmpFile]
set new_line $line
#replace %prcontext with prcontext.tcl (Must replace before %p)
@@ -69,7 +71,7 @@ proc substitute { line test tmpFile } {
return $new_line
}
-proc llvm-runtest { programs } {
+proc RunLLVMTests { test_source_files } {
global srcroot objroot srcdir objdir subdir target_triplet
set timeout 60
@@ -85,7 +87,7 @@ proc llvm-runtest { programs } {
file mkdir Output
- foreach test $programs {
+ foreach test $test_source_files {
#Should figure out best way to set the timeout
#set timeout 40