aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-progspace.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-07 12:18:59 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:57 -0700
commit79749205e72ace5dbec6f797b334c842dab1a45c (patch)
tree76be7dd8801f292c2e4ed8bc0e9362a73fb79cce /gdb/testsuite/gdb.python/py-progspace.exp
parentd394684d5531ea85fc347d68910bed858880f2e0 (diff)
downloadgdb-79749205e72ace5dbec6f797b334c842dab1a45c.zip
gdb-79749205e72ace5dbec6f797b334c842dab1a45c.tar.gz
gdb-79749205e72ace5dbec6f797b334c842dab1a45c.tar.bz2
Use "require" for Python tests
This changes various tests to use "require" for the Python feature.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-progspace.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-progspace.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-progspace.exp b/gdb/testsuite/gdb.python/py-progspace.exp
index 33460b8..23b328a 100644
--- a/gdb/testsuite/gdb.python/py-progspace.exp
+++ b/gdb/testsuite/gdb.python/py-progspace.exp
@@ -18,6 +18,8 @@
load_lib gdb-python.exp
+require !skip_python_tests
+
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
@@ -30,9 +32,6 @@ gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
-# Skip all tests if Python scripting is not enabled.
-if { [skip_python_tests] } { continue }
-
gdb_test "python print (gdb.current_progspace().filename)" "None" \
"current progspace filename (None)"
gdb_test "python print (gdb.progspaces())" "\\\[<gdb.Progspace object at $hex>\\\]"