aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-07-23 15:23:35 +0000
committerDuncan Sands <baldrick@free.fr>2007-07-23 15:23:35 +0000
commit6c7ada4c58c40cc11adc0dbd3d57496eca0b4d2c (patch)
treee651cd411e0304b8fdbbbe779b4648d00b8aba7b /test/lib
parent1b4b25696bd74249503d2eb34ca17b2d3815796a (diff)
The Ada f-e produces various auxiliary output files
that cannot be suppressed and cannot be redirected: they are dumped in the current working directory. When running the testsuite this means that these files do not end up in the Output directory. The best solution I could find is to change directory into Output before running tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index a64692d231..9a85a1c87a 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -46,7 +46,6 @@ proc substitute { line test tmpFile } {
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]
# Substitute all Tcl variables.
set new_line [subst $line ]
@@ -72,7 +71,7 @@ proc substitute { line test tmpFile } {
#replace %s with filename
regsub -all {%s} $new_line $test new_line
#replace %t with temp filenames
- regsub -all {%t} $new_line [file join Output $tmpFile] new_line
+ regsub -all {%t} $new_line $tmpFile new_line
#replace %% with %
regsub -all {%%} $new_line % new_line
return $new_line
@@ -94,6 +93,7 @@ proc RunLLVMTests { test_source_files } {
}
file mkdir Output
+ cd Output
foreach test $test_source_files {
#Should figure out best way to set the timeout