aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-11-07 23:21:50 +0000
committerTanya Lattner <tonic@nondot.org>2004-11-07 23:21:50 +0000
commit808fafa4ccfd5d92bc7d87a9f6ce8eafcc702668 (patch)
tree10cc7d85a960ffae659d593844907c7f04f40302 /test
parent3fecb446f91b291904163d77f53bac682dc8a2dd (diff)
downloadexternal_llvm-808fafa4ccfd5d92bc7d87a9f6ce8eafcc702668.zip
external_llvm-808fafa4ccfd5d92bc7d87a9f6ce8eafcc702668.tar.gz
external_llvm-808fafa4ccfd5d92bc7d87a9f6ce8eafcc702668.tar.bz2
More srcdir != objdir changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/lib/llvm-dg.exp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lib/llvm-dg.exp b/test/lib/llvm-dg.exp
index a3e49c9..7fcb1fa 100644
--- a/test/lib/llvm-dg.exp
+++ b/test/lib/llvm-dg.exp
@@ -3,7 +3,12 @@ proc llvm-runtest { programs objdir subdir target_triplet llvmgcc llvmgxx prcont
set path [file join $objdir $subdir]
#Make Output Directory if it does not exist already
- cd $path
+ if { [file exists path] } {
+ cd $path
+ } else {
+ file mkdir $path
+ cd $path
+ }
file mkdir Output