aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-type.exp9
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 518118c..c056a0a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.python/py-type.exp: Check for Python support.
+
2010-02-17 Pedro Alves <pedro@codesourcery.com>
* lib/gdb.exp (build_id_debug_filename_get): Don't assume new
diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp
index e7ea8f0..ef74d87 100644
--- a/gdb/testsuite/gdb.python/py-type.exp
+++ b/gdb/testsuite/gdb.python/py-type.exp
@@ -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.