aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-22 13:38:26 -0700
committerTom Tromey <tom@tromey.com>2023-01-25 09:02:11 -0700
commit52c0551e9ac03a54e282f9e17d3291c1c8848a7b (patch)
tree91c2286a7bbd6c070ff6a0084f45d3782bb3119a /gdb/testsuite/gdb.python
parente0a8643d2cea10858f30a8378f6cab4472dee0f9 (diff)
downloadbinutils-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.zip
binutils-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.tar.gz
binutils-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.tar.bz2
Use require with is_remote
This changes some tests to use require with 'is_remote', rather than an explicit test. This adds uniformity helps clean up more spots where a test might exit early without any notification.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-pp-maint.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp
index 5e5b803..dc5a1a6 100644
--- a/gdb/testsuite/gdb.python/py-pp-maint.exp
+++ b/gdb/testsuite/gdb.python/py-pp-maint.exp
@@ -16,10 +16,7 @@
# This file is part of the GDB testsuite. It tests Python-based
# pretty-printing for the CLI.
-if [is_remote host] {
- untested "py-pp-maint.exp can only be run locally"
- return -1
-}
+require {!is_remote host}
load_lib gdb-python.exp