From f6bbabf05407ec9e8efb75d31fedf122bc2fdc90 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Wed, 24 Feb 2010 11:11:17 +0000 Subject: 2010-02-24 Phil Muldoon 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. --- gdb/testsuite/gdb.python/py-function.exp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gdb/testsuite/gdb.python/py-function.exp') diff --git a/gdb/testsuite/gdb.python/py-function.exp b/gdb/testsuite/gdb.python/py-function.exp index 461295d..38c5693 100644 --- a/gdb/testsuite/gdb.python/py-function.exp +++ b/gdb/testsuite/gdb.python/py-function.exp @@ -44,13 +44,8 @@ gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir -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 } gdb_py_test_multiple "input convenience function" \ "python" "" \ -- cgit v1.1