[llvm-commits] [llvm] r81152 - in /llvm/trunk/test: FrontendC/2009-03-09-WeakDeclarations-1.c lib/llvm.exp
Daniel Dunbar
daniel at zuster.org
Mon Sep 7 12:25:54 PDT 2009
Author: ddunbar
Date: Mon Sep 7 14:25:54 2009
New Revision: 81152
URL: http://llvm.org/viewvc/llvm-project?rev=81152&view=rev
Log:
Avoid Tcl substitution, introduced %llvmgcc_only for this one little test
(%llvmgcc includes a '-w' argument, and this test looks for warnings).
Modified:
llvm/trunk/test/FrontendC/2009-03-09-WeakDeclarations-1.c
llvm/trunk/test/lib/llvm.exp
Modified: llvm/trunk/test/FrontendC/2009-03-09-WeakDeclarations-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-03-09-WeakDeclarations-1.c?rev=81152&r1=81151&r2=81152&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2009-03-09-WeakDeclarations-1.c (original)
+++ llvm/trunk/test/FrontendC/2009-03-09-WeakDeclarations-1.c Mon Sep 7 14:25:54 2009
@@ -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
Modified: llvm/trunk/test/lib/llvm.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lib/llvm.exp?rev=81152&r1=81151&r2=81152&view=diff
==============================================================================
--- llvm/trunk/test/lib/llvm.exp (original)
+++ llvm/trunk/test/lib/llvm.exp Mon Sep 7 14:25:54 2009
@@ -59,6 +59,8 @@
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++
More information about the llvm-commits
mailing list