Made changes to support objdir!=srcdir.
authorTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 22:04:21 +0000 (22:04 +0000)
committerTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 22:04:21 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17590 91177308-0d34-0410-b5e6-96231b3b80d8

test/lib/llvm-dg.exp

index 77722c72af7b079bbc52bf9a6f09e860adc73288..a3e49c93bb8a54ba3d75bc4b5a44c89bd8927178 100644 (file)
@@ -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
+}
+
+