aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/server-connect.exp
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.server/server-connect.exp
parente0a8643d2cea10858f30a8378f6cab4472dee0f9 (diff)
downloadgdb-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.zip
gdb-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.tar.gz
gdb-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.server/server-connect.exp')
-rw-r--r--gdb/testsuite/gdb.server/server-connect.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.server/server-connect.exp b/gdb/testsuite/gdb.server/server-connect.exp
index 6c4c969..1f5b9a2 100644
--- a/gdb/testsuite/gdb.server/server-connect.exp
+++ b/gdb/testsuite/gdb.server/server-connect.exp
@@ -25,9 +25,7 @@ standard_testfile normal.c
require allow_gdbserver_tests
# We want to have control over where we start gdbserver.
-if { [is_remote target] } {
- return 0
-}
+require {!is_remote target}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
return -1