summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-22 05:53:18 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-22 05:53:18 +0000
commitb66633e9454ace4f3ec7b3d2ae8a4be244a28756 (patch)
tree853297f876cd7d3076b346b8b8205963ab333f94
parent4388f0b4faf6fbac0e59334653cf60da8a869755 (diff)
downloadbcm5719-llvm-b66633e9454ace4f3ec7b3d2ae8a4be244a28756.tar.gz
bcm5719-llvm-b66633e9454ace4f3ec7b3d2ae8a4be244a28756.zip
Make running these tests conditional on llvm-gcc supporting the language
of these test cases. llvm-svn: 36328
-rw-r--r--llvm/test/C++Frontend/dg.exp4
-rw-r--r--llvm/test/CFrontend/dg.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/C++Frontend/dg.exp b/llvm/test/C++Frontend/dg.exp
index 879685ca879..d8e89899301 100644
--- a/llvm/test/C++Frontend/dg.exp
+++ b/llvm/test/C++Frontend/dg.exp
@@ -1,3 +1,5 @@
load_lib llvm.exp
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+if [ llvm_gcc_supports c++ ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+}
diff --git a/llvm/test/CFrontend/dg.exp b/llvm/test/CFrontend/dg.exp
index 879685ca879..6675048e693 100644
--- a/llvm/test/CFrontend/dg.exp
+++ b/llvm/test/CFrontend/dg.exp
@@ -1,3 +1,5 @@
load_lib llvm.exp
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+if [ llvm_gcc_supports c ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+}
OpenPOWER on IntegriCloud