aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a3e49c93bb..7fcb1facdb 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