[llvm-commits] CVS: llvm/test/lib/llvm-dg.exp

Tanya Brethour tbrethou at cs.uiuc.edu
Sun Nov 7 14:04:32 PST 2004



Changes in directory llvm/test/lib:

llvm-dg.exp updated: 1.2 -> 1.3
---
Log message:

Made changes to support objdir!=srcdir.


---
Diffs of the changes:  (+6 -4)

Index: llvm/test/lib/llvm-dg.exp
diff -u llvm/test/lib/llvm-dg.exp:1.2 llvm/test/lib/llvm-dg.exp:1.3
--- llvm/test/lib/llvm-dg.exp:1.2	Sat Nov  6 23:02:56 2004
+++ llvm/test/lib/llvm-dg.exp	Sun Nov  7 16:04:21 2004
@@ -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 @@
 		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 @@
 	    }
 	}
     }
-}
\ No newline at end of file
+}
+
+






More information about the llvm-commits mailing list