aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-05-13 13:23:57 -0300
committerBruno Larsen <blarsen@redhat.com>2022-05-16 10:07:43 -0300
commitcdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9 (patch)
treebe9e3ffcbe58cd24f751c1c828a91b8b79099784 /gdb/testsuite/gdb.server
parentb7ff32f191ed7e708412e9faa31cf691f08ca695 (diff)
downloadfsf-binutils-gdb-cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9.zip
fsf-binutils-gdb-cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9.tar.gz
fsf-binutils-gdb-cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9.tar.bz2
gdb/testsuite: fix "continue outside of loop" TCL errors
Many test cases had a few lines in the beginning that look like: if { condition } { continue } Where conditions varied, but were mostly in the form of ![runto_main] or [skip_*_tests], making it quite clear that this code block was supposed to finish the test if it entered the code block. This generates TCL errors, as most of these tests are not inside loops. All cases on which this was an obvious mistake are changed in this patch.
Diffstat (limited to 'gdb/testsuite/gdb.server')
-rw-r--r--gdb/testsuite/gdb.server/extended-remote-restart.exp4
-rw-r--r--gdb/testsuite/gdb.server/reconnect-ctrl-c.exp2
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.server/extended-remote-restart.exp b/gdb/testsuite/gdb.server/extended-remote-restart.exp
index 4d3eb09..db25a6e 100644
--- a/gdb/testsuite/gdb.server/extended-remote-restart.exp
+++ b/gdb/testsuite/gdb.server/extended-remote-restart.exp
@@ -30,13 +30,13 @@
# This test is only for extended remote targets.
if {[target_info gdb_protocol] != "extended-remote"} {
- continue
+ return
}
# This test also makes use of 'detach-on-fork' which is not supported
# on all platforms.
if { ![istarget "*-*-linux*"] && ![istarget "*-*-openbsd*"] } then {
- continue
+ return
}
# And we need to be able to reconnect to gdbserver.
diff --git a/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp b/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
index 8088fc5..70b4dbf 100644
--- a/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
+++ b/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
@@ -26,7 +26,7 @@ if { [skip_gdbserver_tests] } {
if [target_info exists gdb,nointerrupts] {
verbose "Skipping reconnect-ctrl-c.exp because of nointerrupts."
- continue
+ return
}
standard_testfile