This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/testsuite] Fix py-type.exp for no Python
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 18 Feb 2010 10:28:31 -0500
- Subject: [commit/testsuite] Fix py-type.exp for no Python
I've checked in this obvious patch. A subroutine, a la
skip_cplus_tests, might be a good future idea.
--
Daniel Jacobowitz
CodeSourcery
2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.python/py-type.exp: Check for Python support.
Index: gdb.python/py-type.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-type.exp,v
retrieving revision 1.3
diff -u -p -r1.3 py-type.exp
--- gdb.python/py-type.exp 1 Jan 2010 07:32:06 -0000 1.3
+++ gdb.python/py-type.exp 18 Feb 2010 15:26:39 -0000
@@ -128,6 +128,15 @@ proc test_range {} {
# Perform C Tests.
build_inferior "c"
restart_gdb "break to inspect struct and array."
+
+gdb_test_multiple "python print 'hello, world!'" "verify python support" {
+ -re "not supported.*$gdb_prompt $" {
+ unsupported "python support is disabled"
+ return -1
+ }
+ -re "$gdb_prompt $" {}
+}
+
test_fields "c"
# Perform C++ Tests.