diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2020-06-17 13:43:32 -0700 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2020-06-17 13:43:32 -0700 |
commit | 05e682e3be7e3d9d63ec358dcf8943fd200545cb (patch) | |
tree | 750e3c938f46e0eaafb703391c89d55676503160 /gdb/testsuite/gdb.python | |
parent | efb763a5ea351f9d865cbe491909f03472ebf2d6 (diff) | |
download | gdb-05e682e3be7e3d9d63ec358dcf8943fd200545cb.zip gdb-05e682e3be7e3d9d63ec358dcf8943fd200545cb.tar.gz gdb-05e682e3be7e3d9d63ec358dcf8943fd200545cb.tar.bz2 |
Fix TCL error in gdb.python/py-format-string.exp.
2020-06-17 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.python/py-format-string.exp: Move test for python support
earlier, out of function body.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/py-format-string.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp index f809ef3..792d60c 100644 --- a/gdb/testsuite/gdb.python/py-format-string.exp +++ b/gdb/testsuite/gdb.python/py-format-string.exp @@ -24,6 +24,11 @@ if [get_compiler_info c++] { return -1 } +# Skip all tests if Python scripting is not enabled. +gdb_exit +gdb_start +if { [skip_python_tests] } { continue } + # Build inferior to language specification. proc build_inferior {exefile lang} { global srcdir subdir srcfile testfile hex @@ -45,9 +50,6 @@ proc prepare_gdb {exefile} { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${exefile} - # Skip all tests if Python scripting is not enabled. - if { [skip_python_tests] } { continue } - if ![runto_main] then { perror "couldn't run to breakpoint" return |