aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-05-22 05:10:20 +0000
committerTanya Lattner <tonic@nondot.org>2008-05-22 05:10:20 +0000
commit422c8d1184dae69bd5b2a98018c44c340f979cfa (patch)
tree1dd92313b88a5aff080f41bbf9d532af5ec42d21
parentc1e0cbf19db4f5c9cfdc51fba75fe7bce0b3de17 (diff)
downloadllvm-422c8d1184dae69bd5b2a98018c44c340f979cfa.zip
llvm-422c8d1184dae69bd5b2a98018c44c340f979cfa.tar.gz
llvm-422c8d1184dae69bd5b2a98018c44c340f979cfa.tar.bz2
Merge from mainline.
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman! llvm-svn: 51413
-rw-r--r--llvm/test/LLVMC/dg.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/LLVMC/dg.exp b/llvm/test/LLVMC/dg.exp
index 22ecaec..a2e44b9 100644
--- a/llvm/test/LLVMC/dg.exp
+++ b/llvm/test/LLVMC/dg.exp
@@ -1,3 +1,10 @@
load_lib llvm.exp
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp}]]
+if [ llvm_gcc_supports c ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]]
+}
+
+if [ llvm_gcc_supports c++ ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]]
+}
+