[llvm-commits] [llvm] r51108 - /llvm/trunk/test/LLVMC/dg.exp

Tanya Lattner tonic at nondot.org
Wed May 14 09:32:44 PDT 2008


Author: tbrethou
Date: Wed May 14 11:32:44 2008
New Revision: 51108

URL: http://llvm.org/viewvc/llvm-project?rev=51108&view=rev
Log:
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!


Modified:
    llvm/trunk/test/LLVMC/dg.exp

Modified: llvm/trunk/test/LLVMC/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/dg.exp?rev=51108&r1=51107&r2=51108&view=diff

==============================================================================
--- llvm/trunk/test/LLVMC/dg.exp (original)
+++ llvm/trunk/test/LLVMC/dg.exp Wed May 14 11:32:44 2008
@@ -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}]]
+}
+





More information about the llvm-commits mailing list