aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-18 15:27:35 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-18 15:27:35 +0000
commit7d1bf85cc5dafbb6a0bd897f54fb50df68a1e7e3 (patch)
treecaea7159efe9ecfa2bf59ba3b4c3b340cf649cd1 /gdb/testsuite/gdb.python
parentcd21e5460f664d311f34645388138a44c228dc97 (diff)
downloadgdb-7d1bf85cc5dafbb6a0bd897f54fb50df68a1e7e3.zip
gdb-7d1bf85cc5dafbb6a0bd897f54fb50df68a1e7e3.tar.gz
gdb-7d1bf85cc5dafbb6a0bd897f54fb50df68a1e7e3.tar.bz2
* gdb.python/py-type.exp: Check for Python support.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-type.exp9
1 files changed, 9 insertions, 0 deletions
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.