aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-13 01:39:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-13 01:39:50 +0000
commitc46101cd59d21edd7614d3c2ad57119baebf0db4 (patch)
tree82e4e80a22a5f2910feb78006dad606fe4c98ae9 /test/lib
parent61e88aec10e345617c054125c4fdfdc7a692be47 (diff)
downloadexternal_llvm-c46101cd59d21edd7614d3c2ad57119baebf0db4.zip
external_llvm-c46101cd59d21edd7614d3c2ad57119baebf0db4.tar.gz
external_llvm-c46101cd59d21edd7614d3c2ad57119baebf0db4.tar.bz2
tests: Add a %abs_tmp substitution which is guaranteed to be a full path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index a8eec3a..f5ec6f3 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -85,6 +85,8 @@ proc substitute { line test tmpFile } {
regsub -all {%s} $new_line $test new_line
#replace %t with temp filenames
regsub -all {%t} $new_line $tmpFile new_line
+ #replace %abs_tmp with absolute temp filenames
+ regsub -all {%abs_tmp} $new_line [file join [pwd] $tmpFile] new_line
#replace _#MARKER#_ with %
regsub -all {_#MARKER#_} $new_line % new_line