[llvm-commits] [llvm] r81662 - in /llvm/trunk: test/lib/llvm.exp utils/lit/TestRunner.py
Daniel Dunbar
daniel at zuster.org
Sat Sep 12 18:39:50 PDT 2009
Author: ddunbar
Date: Sat Sep 12 20:39:50 2009
New Revision: 81662
URL: http://llvm.org/viewvc/llvm-project?rev=81662&view=rev
Log:
tests: Add a %abs_tmp substitution which is guaranteed to be a full path.
Modified:
llvm/trunk/test/lib/llvm.exp
llvm/trunk/utils/lit/TestRunner.py
Modified: llvm/trunk/test/lib/llvm.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lib/llvm.exp?rev=81662&r1=81661&r2=81662&view=diff
==============================================================================
--- llvm/trunk/test/lib/llvm.exp (original)
+++ llvm/trunk/test/lib/llvm.exp Sat Sep 12 20:39:50 2009
@@ -85,6 +85,8 @@
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
Modified: llvm/trunk/utils/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/TestRunner.py?rev=81662&r1=81661&r2=81662&view=diff
==============================================================================
--- llvm/trunk/utils/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/TestRunner.py Sat Sep 12 20:39:50 2009
@@ -294,6 +294,8 @@
('%S', os.path.dirname(sourcepath)),
('%p', os.path.dirname(sourcepath)),
('%t', tmpBase + '.tmp'),
+ # FIXME: Remove this once we kill DejaGNU.
+ ('%abs_tmp', tmpBase + '.tmp'),
('#_MARKER_#', '%')])
# Collect the test lines from the script.
More information about the llvm-commits
mailing list