Avoid Tcl substitution, introduced %llvmgcc_only for this one little test
authorDaniel Dunbar <daniel@zuster.org>
Mon, 7 Sep 2009 19:25:54 +0000 (19:25 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 7 Sep 2009 19:25:54 +0000 (19:25 +0000)
(%llvmgcc includes a '-w' argument, and this test looks for warnings).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81152 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2009-03-09-WeakDeclarations-1.c
test/lib/llvm.exp

index 15b9801699a2112dc3027d7d3327da43f462a438..13ea84f7bae92d5e6a3a6409557ce2c0aa24b452 100644 (file)
@@ -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
index eb437588f3c3c6a2cf96cb5e2bee197ba13a1b41..cd36c61b5e754b75a9e372d3431afa79e6f35d18 100644 (file)
@@ -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++