diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-07 19:25:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-07 19:25:54 +0000 |
commit | b25f32bab8744b5955a64a97deb1aac10418986a (patch) | |
tree | 43a50d580c319c5de69a336f03674d0cefe23b8d | |
parent | 3429c5e153d5315df7db1fcfb0a6a95cbfd48fba (diff) |
Avoid Tcl substitution, introduced %llvmgcc_only for this one little test
(%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
-rw-r--r-- | test/FrontendC/2009-03-09-WeakDeclarations-1.c | 2 | ||||
-rw-r--r-- | test/lib/llvm.exp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/FrontendC/2009-03-09-WeakDeclarations-1.c b/test/FrontendC/2009-03-09-WeakDeclarations-1.c index 15b9801699..13ea84f7ba 100644 --- a/test/FrontendC/2009-03-09-WeakDeclarations-1.c +++ b/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/test/lib/llvm.exp b/test/lib/llvm.exp index eb437588f3..cd36c61b5e 100644 --- a/test/lib/llvm.exp +++ b/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++ |