More srcdir != objdir changes.
authorTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 23:21:50 +0000 (23:21 +0000)
committerTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 23:21:50 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17596 91177308-0d34-0410-b5e6-96231b3b80d8

test/lib/llvm-dg.exp

index a3e49c93bb8a54ba3d75bc4b5a44c89bd8927178..7fcb1facdb823d46f03ed8c5fd2b1af18890dca0 100644 (file)
@@ -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