aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-frame.exp
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/gdb.python/py-frame.exp
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/gdb.python/py-frame.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-frame.exp9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp
index 86fe660..6989207 100644
--- a/gdb/testsuite/gdb.python/py-frame.exp
+++ b/gdb/testsuite/gdb.python/py-frame.exp
@@ -46,13 +46,8 @@ gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-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 $" {}
-}
+# Skip all tests if Python scripting is not enabled.
+if { [skip_python_tests] } { continue }
# The following tests require execution.