diff options
author | Bruno Larsen <blarsen@redhat.com> | 2022-05-13 13:23:57 -0300 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-05-16 10:07:43 -0300 |
commit | cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9 (patch) | |
tree | be9e3ffcbe58cd24f751c1c828a91b8b79099784 /gdb/testsuite/gdb.cp/ctti.exp | |
parent | b7ff32f191ed7e708412e9faa31cf691f08ca695 (diff) | |
download | gdb-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.cp/ctti.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/ctti.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp index df8e7fb..1011a14 100644 --- a/gdb/testsuite/gdb.cp/ctti.exp +++ b/gdb/testsuite/gdb.cp/ctti.exp @@ -21,7 +21,7 @@ # Call to template instantiations. -if { [skip_cplus_tests] } { continue } +if { [skip_cplus_tests] } { return } standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc @@ -36,7 +36,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \ if ![runto_main] then { perror "couldn't run to breakpoint" - continue + return } gdb_breakpoint [gdb_get_line_number "marker add1"] @@ -49,7 +49,7 @@ gdb_test "print i" "\\$\[0-9\]+ = 4" # TODO: this needs more work before actually deploying it. # So bail out here. -if { [ test_compiler_info gcc-*] } then { continue } +if { [ test_compiler_info gcc-*] } then { return } gdb_test_multiple "print add<int>(2,2)" "print add<int>(2,2)" { -re "\\$\[0-9\]+ = 4\r\n$gdb_prompt $" { |