aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2010-02-24 11:11:17 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2010-02-24 11:11:17 +0000
commitf6bbabf05407ec9e8efb75d31fedf122bc2fdc90 (patch)
treea15ada6b720389d2b42108636f2549b7bd3b51ba /gdb/testsuite/lib
parenta79b8f6ea8c26650ad9b6f29e3df46f86f4f3530 (diff)
downloadgdb-f6bbabf05407ec9e8efb75d31fedf122bc2fdc90.zip
gdb-f6bbabf05407ec9e8efb75d31fedf122bc2fdc90.tar.gz
gdb-f6bbabf05407ec9e8efb75d31fedf122bc2fdc90.tar.bz2
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
PR python/11314 * lib/gdb.exp (skip_python_tests): New function. * gdb.python/py-cmd.exp: Use skip_python_tests. * gdb.python/py-frame.exp: Likewise. * gdb.python/py-function.exp: Likewise. * gdb.python/py-prettyprint.exp: Likewise. * gdb.python/py-template.exp: Likewise. * gdb.python/py-type.exp: Likewise. * gdb.python/py-value.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 627941d..8c18f33 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1299,6 +1299,21 @@ proc skip_java_tests {} {
return 0
}
+# Return a 1 for configurations that do not support Python scripting.
+
+proc skip_python_tests {} {
+ global gdb_prompt
+ gdb_test_multiple "python print 'test'" "verify python support" {
+ -re "not supported.*$gdb_prompt $" {
+ unsupported "Python support is disabled."
+ return 1
+ }
+ -re "$gdb_prompt $" {}
+ }
+
+ return 0
+}
+
# Return a 1 if we should skip shared library tests.
proc skip_shlib_tests {} {