aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 11:46:05 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:58 -0700
commitd82e5429b532f3cf0a0453800b0347368834f8bc (patch)
treee3e11ec7928cac52b00d878d139104759700c332 /gdb/testsuite/lib
parentc241bf50ca04196a1bb88e71a43b95dc5e61ca35 (diff)
downloadgdb-d82e5429b532f3cf0a0453800b0347368834f8bc.zip
gdb-d82e5429b532f3cf0a0453800b0347368834f8bc.tar.gz
gdb-d82e5429b532f3cf0a0453800b0347368834f8bc.tar.bz2
Rename to allow_python_tests
This changes skip_python_tests to invert the sense, and renames it to allow_python_tests.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 3a1936f..b6eff66 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2447,11 +2447,11 @@ proc skip_rust_tests {} {
return 0
}
-# Return a 1 for configurations that do not support Python scripting.
+# Return a 1 for configurations that support Python scripting.
-gdb_caching_proc skip_python_tests {
+gdb_caching_proc allow_python_tests {
set output [remote_exec host $::GDB --configuration]
- return [expr {[string first "--with-python" $output] == -1}]
+ return [expr {[string first "--with-python" $output] != -1}]
}
# Return a 1 if we should skip shared library tests.