From: Tanya Lattner Date: Wed, 14 May 2008 16:32:44 +0000 (+0000) Subject: Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=969c9d3b3969dd9ce23133d605ea44a3bb3ce90f;p=oota-llvm.git Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51108 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp index 22ecaecbd7b..a2e44b99859 100644 --- a/test/LLVMC/dg.exp +++ b/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}]] +} +