aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lib/llvm-dg.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/llvm-dg.exp b/test/lib/llvm-dg.exp
index 7c104c0f46..55813c9b33 100644
--- a/test/lib/llvm-dg.exp
+++ b/test/lib/llvm-dg.exp
@@ -52,7 +52,7 @@ proc llvm-runtest { programs objdir srcdir subdir target_triplet llvmgcc llvmgxx
regsub -all {%prcontext} $new_runline $prcontext new_runline
#replace %p with path to source,
- regsub -all {%p} $new_runline $srcdir new_runline
+ regsub -all {%p} $new_runline [file join $srcdir $subdir] new_runline
#replace %llvmgcc with actual path to llvmgcc
regsub -all {%llvmgcc} $new_runline $llvmgcc new_runline