diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-11-07 22:04:21 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-11-07 22:04:21 +0000 |
commit | e243e2ff45ab58fb9e4322b437870733017f3d40 (patch) | |
tree | 89436236e1c2a0436736359be5cd5f27efcd5771 | |
parent | ae18963a70b45086f351a10641f2ca756063eeaf (diff) | |
download | external_llvm-e243e2ff45ab58fb9e4322b437870733017f3d40.zip external_llvm-e243e2ff45ab58fb9e4322b437870733017f3d40.tar.gz external_llvm-e243e2ff45ab58fb9e4322b437870733017f3d40.tar.bz2 |
Made changes to support objdir!=srcdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17590 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/lib/llvm-dg.exp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/lib/llvm-dg.exp b/test/lib/llvm-dg.exp index 77722c7..a3e49c9 100644 --- a/test/lib/llvm-dg.exp +++ b/test/lib/llvm-dg.exp @@ -1,6 +1,6 @@ -proc llvm-runtest { programs srcdir subdir target_triplet llvmgcc llvmgxx prcontext} { +proc llvm-runtest { programs objdir subdir target_triplet llvmgcc llvmgxx prcontext} { - set path [file join $srcdir $subdir] + set path [file join $objdir $subdir] #Make Output Directory if it does not exist already cd $path @@ -36,7 +36,7 @@ proc llvm-runtest { programs srcdir subdir target_triplet llvmgcc llvmgxx prcont set hasRunline 1 #replace %s with filename - regsub -all {%s} $runline $filename new_runline + regsub -all {%s} $runline $test new_runline #replace %t with temp filenames regsub -all {%t} $new_runline [file join Output $tmpFile] new_runline @@ -110,4 +110,6 @@ proc llvm-runtest { programs srcdir subdir target_triplet llvmgcc llvmgxx prcont } } } -}
\ No newline at end of file +} + + |