aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/warning.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.base/warning.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.base/warning.exp')
-rw-r--r--gdb/testsuite/gdb.base/warning.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/warning.exp b/gdb/testsuite/gdb.base/warning.exp
index 50e680b..e58bde5 100644
--- a/gdb/testsuite/gdb.base/warning.exp
+++ b/gdb/testsuite/gdb.base/warning.exp
@@ -15,10 +15,7 @@
# Test that an early warning does not cause a crash.
-if {[is_remote host]} {
- unsupported "warning.exp can only run on local host"
- return
-}
+require {!is_remote host}
set tname [standard_temp_file warning]
set fd [open $tname w]