This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Check skip_cplus_tests for gdb.python/py-template.exp
- From: "Andrew Burgess" <aburgess at broadcom dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 29 Jun 2011 13:21:01 +0100
- Subject: [PATCH] Check skip_cplus_tests for gdb.python/py-template.exp
The test gdb.python/py-template.exp compiles a c++ test, if feels like
we shouldn't be attempting this if the skip_cplus_test function returns
true.
The patch is below, OK to apply? As this seems fairly obvious I'll apply
in a few days unless someone asks me not too.
Cheers,
Andrew
gdb/testsuite/ChangeLog
2011-06-29 Andrew Burgess <aburgess@broadcom.com>
* gdb.python/py-template.exp: Don't run this test if the target
does not support c++ tests.
diff --git a/gdb/testsuite/gdb.python/py-template.exp
b/gdb/testsuite/gdb.python/py-template.exp
index d22e4d1..9656831 100644
--- a/gdb/testsuite/gdb.python/py-template.exp
+++ b/gdb/testsuite/gdb.python/py-template.exp
@@ -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}