[commit/testsuite] Fix py-type.exp for no Python
Daniel Jacobowitz
dan@codesourcery.com
Thu Feb 18 15:28:00 GMT 2010
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.
More information about the Gdb-patches
mailing list