summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-07 19:25:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-07 19:25:54 +0000
commit0367b0f136831911d9932165efe0de4c5306b534 (patch)
tree4eaa2d8d98583da0d2504a7b5f9f92ffa3390e48
parent85ec4ffaf50721386e518ea86927e383a7d3979a (diff)
downloadbcm5719-llvm-0367b0f136831911d9932165efe0de4c5306b534.tar.gz
bcm5719-llvm-0367b0f136831911d9932165efe0de4c5306b534.zip
Avoid Tcl substitution, introduced %llvmgcc_only for this one little test
(%llvmgcc includes a '-w' argument, and this test looks for warnings). llvm-svn: 81152
-rw-r--r--llvm/test/FrontendC/2009-03-09-WeakDeclarations-1.c2
-rw-r--r--llvm/test/lib/llvm.exp2
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/FrontendC/2009-03-09-WeakDeclarations-1.c b/llvm/test/FrontendC/2009-03-09-WeakDeclarations-1.c
index 15b9801699a..13ea84f7bae 100644
--- a/llvm/test/FrontendC/2009-03-09-WeakDeclarations-1.c
+++ b/llvm/test/FrontendC/2009-03-09-WeakDeclarations-1.c
@@ -1,4 +1,4 @@
-// RUN: $llvmgcc $test -c -o /dev/null |& \
+// RUN: %llvmgcc_only %s -c -o /dev/null |& \
// RUN: egrep {(14|15|22): warning:} | \
// RUN: wc -l | grep --quiet 3
// XTARGET: darwin,linux
diff --git a/llvm/test/lib/llvm.exp b/llvm/test/lib/llvm.exp
index eb437588f3c..cd36c61b5e7 100644
--- a/llvm/test/lib/llvm.exp
+++ b/llvm/test/lib/llvm.exp
@@ -59,6 +59,8 @@ proc substitute { line test tmpFile } {
regsub -all {%%} $new_line {_#MARKER#_} new_line
#replace %prcontext with prcontext.tcl (Must replace before %p)
regsub -all {%prcontext} $new_line $prcontext new_line
+ #replace %llvmgcc_only with actual path to llvmgcc
+ regsub -all {%llvmgcc_only} $new_line "$llvmgcc" new_line
#replace %llvmgcc with actual path to llvmgcc
regsub -all {%llvmgcc} $new_line "$llvmgcc -emit-llvm -w" new_line
#replace %llvmgxx with actual path to llvmg++
OpenPOWER on IntegriCloud