From cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9 Mon Sep 17 00:00:00 2001 From: Bruno Larsen Date: Fri, 13 May 2022 13:23:57 -0300 Subject: 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. --- gdb/testsuite/gdb.mi/mi2-prompt.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.mi/mi2-prompt.exp') diff --git a/gdb/testsuite/gdb.mi/mi2-prompt.exp b/gdb/testsuite/gdb.mi/mi2-prompt.exp index 1ecd62dc652..34b51289ea7 100644 --- a/gdb/testsuite/gdb.mi/mi2-prompt.exp +++ b/gdb/testsuite/gdb.mi/mi2-prompt.exp @@ -18,7 +18,7 @@ set MIFLAGS "-i=mi2" gdb_exit if [mi_gdb_start] { - continue + return } # Check console 'set prompt' does not affect the MI output. -- cgit v1.2.1