http://sourceware.org/ml/gdb-patches/2011-06/msg00442.html
authorAndrew Burgess <aburgess@broadcom.com>
Thu, 30 Jun 2011 08:53:38 +0000 (08:53 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Thu, 30 Jun 2011 08:53:38 +0000 (08:53 +0000)
Don't compile c++ tests for platforms that don't support c++.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-template.exp

index b0e0fe5..2a88fc6 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
+
+       * gdb.python/py-template.exp: Don't run this test if the target
+       does not support c++ tests.
+
 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix non-only rename list for Fortran modules import.
index d22e4d1..9656831 100644 (file)
@@ -20,6 +20,8 @@ if $tracelevel then {
     strace $tracelevel
 }
 
+if { [skip_cplus_tests] } { continue }
+
 set testfile "py-template"
 set srcfile ${testfile}.cc
 set binfile ${objdir}/${subdir}/${testfile}