aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-var-rtti.exp
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.mi/mi-var-rtti.exp
parentb7ff32f191ed7e708412e9faa31cf691f08ca695 (diff)
downloadgdb-cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9.zip
gdb-cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9.tar.gz
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.mi/mi-var-rtti.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-var-rtti.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
index 0015d23..ad18d1a 100644
--- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
@@ -13,14 +13,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if { [skip_cplus_tests] } { continue }
+if { [skip_cplus_tests] } { return }
load_lib mi-support.exp
set MIFLAGS "-i=mi"
gdb_exit
if [mi_gdb_start] {
- continue
+ return
}
standard_testfile .cc