diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2010-02-24 11:11:17 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-02-24 11:11:17 +0000 |
commit | f6bbabf05407ec9e8efb75d31fedf122bc2fdc90 (patch) | |
tree | a15ada6b720389d2b42108636f2549b7bd3b51ba /gdb/testsuite/gdb.python/py-cmd.exp | |
parent | a79b8f6ea8c26650ad9b6f29e3df46f86f4f3530 (diff) | |
download | binutils-f6bbabf05407ec9e8efb75d31fedf122bc2fdc90.zip binutils-f6bbabf05407ec9e8efb75d31fedf122bc2fdc90.tar.gz binutils-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-cmd.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-cmd.exp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.python/py-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp index 2a3ed0d..d3c05ff 100644 --- a/gdb/testsuite/gdb.python/py-cmd.exp +++ b/gdb/testsuite/gdb.python/py-cmd.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 } # Test a simple command. |