From: Thiago Jung Bauermann Date: Wed, 29 Apr 2026 23:04:07 +0000 (-0300) Subject: GDB: testsuite: C++: Don't return value from top-level (sed) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7a24a970c09818f9c11643304b2280dd1dcbcc;p=thirdparty%2Fbinutils-gdb.git GDB: testsuite: C++: Don't return value from top-level (sed) This patch is purely the result of running: $ sed -i 's/^ return -1/ return/' *.exp* and $ sed -i 's/^ return 0/ return/' *.exp* inside gdb/testsuite/gdb.cp. I didn't include changes made to return statements inside procedures. Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/abstract-origin.exp index f9df73d5fe8..5b7139527a0 100644 --- a/gdb/testsuite/gdb.cp/abstract-origin.exp +++ b/gdb/testsuite/gdb.cp/abstract-origin.exp @@ -16,11 +16,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "break-here"] diff --git a/gdb/testsuite/gdb.cp/align.exp b/gdb/testsuite/gdb.cp/align.exp index 6cf046b0cb7..03b98117519 100644 --- a/gdb/testsuite/gdb.cp/align.exp +++ b/gdb/testsuite/gdb.cp/align.exp @@ -139,7 +139,7 @@ standard_testfile $filename if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug nowarnings c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambiguous.exp index 838fa95cbb1..94ba6a6b7ca 100644 --- a/gdb/testsuite/gdb.cp/ambiguous.exp +++ b/gdb/testsuite/gdb.cp/ambiguous.exp @@ -33,7 +33,7 @@ if {[test_compiler_info {gcc-[0-9]-*}]} { if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ [list debug c++ $additional_flags]]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp index b3190fb3e25..466cab05b8a 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -26,7 +26,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ nowarnings}]} { - return -1 + return } # This testcase cannot use runto_main because of the different prompt diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota3.exp index a7016ee76bd..39a1399f95d 100644 --- a/gdb/testsuite/gdb.cp/annota3.exp +++ b/gdb/testsuite/gdb.cp/annota3.exp @@ -26,7 +26,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ nowarnings}]} { - return -1 + return } # This testcase cannot use runto_main because of the different prompt diff --git a/gdb/testsuite/gdb.cp/anon-ns.exp b/gdb/testsuite/gdb.cp/anon-ns.exp index 99f949cfc96..50f77952bb3 100644 --- a/gdb/testsuite/gdb.cp/anon-ns.exp +++ b/gdb/testsuite/gdb.cp/anon-ns.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc anon-ns2.cc if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {c++ debug}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/anon-union.exp b/gdb/testsuite/gdb.cp/anon-union.exp index 5b26f7a848d..def3c3df109 100644 --- a/gdb/testsuite/gdb.cp/anon-union.exp +++ b/gdb/testsuite/gdb.cp/anon-union.exp @@ -28,7 +28,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/arg-reference.exp b/gdb/testsuite/gdb.cp/arg-reference.exp index b690c1376e6..1433ec3b3e4 100644 --- a/gdb/testsuite/gdb.cp/arg-reference.exp +++ b/gdb/testsuite/gdb.cp/arg-reference.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } gdb_test "ptype foo" "type = int \\\(Obj\\\)" "no false reference" diff --git a/gdb/testsuite/gdb.cp/baseenum.exp b/gdb/testsuite/gdb.cp/baseenum.exp index da7a436026d..5bf9963645d 100644 --- a/gdb/testsuite/gdb.cp/baseenum.exp +++ b/gdb/testsuite/gdb.cp/baseenum.exp @@ -18,11 +18,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "breakpoint 1" $srcfile] diff --git a/gdb/testsuite/gdb.cp/bool.exp b/gdb/testsuite/gdb.cp/bool.exp index 1cab03b73d0..eb2946d8c72 100644 --- a/gdb/testsuite/gdb.cp/bool.exp +++ b/gdb/testsuite/gdb.cp/bool.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/break-template-cast.exp b/gdb/testsuite/gdb.cp/break-template-cast.exp index 04ebff92489..26cf9d387f3 100644 --- a/gdb/testsuite/gdb.cp/break-template-cast.exp +++ b/gdb/testsuite/gdb.cp/break-template-cast.exp @@ -22,7 +22,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" $testfile "$srcfile"\ {debug c++}] } { - return -1 + return } gdb_test "break foo" \ diff --git a/gdb/testsuite/gdb.cp/breakpoint-locs.exp b/gdb/testsuite/gdb.cp/breakpoint-locs.exp index 2ab046d3be8..6a77ef26bde 100644 --- a/gdb/testsuite/gdb.cp/breakpoint-locs.exp +++ b/gdb/testsuite/gdb.cp/breakpoint-locs.exp @@ -23,7 +23,7 @@ include_file breakpoint-locs.h if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2"\ {debug c++}] } { - return -1 + return } gdb_test "break N1::C1::baz" "\\(2 locations\\)" diff --git a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp index aaa2a531c81..5f99ab9a437 100644 --- a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp +++ b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp @@ -32,12 +32,12 @@ standard_testfile .cc -lib.cc set libobj [standard_output_file libfoo.so] if {[build_executable "build shared library" $libobj $srcfile2 \ {debug c++ shlib}] != 0} { - return -1 + return } if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ [list debug c++ shlib=$libobj]]} { - return -1 + return } gdb_load_shlib $libobj @@ -49,7 +49,7 @@ gdb_test "info breakpoints" "" # Runto main, but don't delete all the breakpoints. if {![runto_main no-delete-breakpoints]} { - return -1 + return } # The breakpoint should now be showing in `foo` for real. diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/breakpoint.exp index bb7b8bf5a51..936015e6709 100644 --- a/gdb/testsuite/gdb.cp/breakpoint.exp +++ b/gdb/testsuite/gdb.cp/breakpoint.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc test_breakpoint {name} { diff --git a/gdb/testsuite/gdb.cp/bs15503.exp b/gdb/testsuite/gdb.cp/bs15503.exp index 3a1ec22b5a4..603cc0f1deb 100644 --- a/gdb/testsuite/gdb.cp/bs15503.exp +++ b/gdb/testsuite/gdb.cp/bs15503.exp @@ -22,7 +22,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/call-c.exp b/gdb/testsuite/gdb.cp/call-c.exp index bdbe4277239..b5f7fdb24bb 100644 --- a/gdb/testsuite/gdb.cp/call-c.exp +++ b/gdb/testsuite/gdb.cp/call-c.exp @@ -24,7 +24,7 @@ if {[gdb_compile "$srcdir/$subdir/${srcfile2}" "${objfilec}" object {debug}] != || [gdb_compile "$srcdir/$subdir/${srcfile}" "${objfilecpp}" object {c++ debug}] != "" || [gdb_compile "${objfilecpp} ${objfilec}" "${binfile}" executable {c++ debug}] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${::testfile} diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp index d711cc9bd53..815c0e6a485 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -32,7 +32,7 @@ lappend flags_nodebug nodebug lappend flags_nodebug c++ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags_debug]} { - return -1 + return } set asm_file [standard_output_file $srcfile2] @@ -105,11 +105,11 @@ Dwarf::assemble $asm_file { if { [prepare_for_testing "failed to prepare" ${testfile} \ [list $srcfile $asm_file] $::flags_nodebug] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "print global_var.yyy ()" \ diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp index fd37368e1a8..67246ac7b5c 100644 --- a/gdb/testsuite/gdb.cp/casts.exp +++ b/gdb/testsuite/gdb.cp/casts.exp @@ -35,7 +35,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } if {![runto_main]} { @@ -215,7 +215,7 @@ gdb_test "print &dynamic_cast (*vr) == vr" " = true" if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \ {debug c++ additional_flags=-std=c++03}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/chained-calls.exp b/gdb/testsuite/gdb.cp/chained-calls.exp index 4d7522a0bd1..5c7b84d50b6 100644 --- a/gdb/testsuite/gdb.cp/chained-calls.exp +++ b/gdb/testsuite/gdb.cp/chained-calls.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp index d8f1e797225..705f51ac3e0 100644 --- a/gdb/testsuite/gdb.cp/class2.exp +++ b/gdb/testsuite/gdb.cp/class2.exp @@ -26,7 +26,7 @@ if { [gcc_major_version "clang-*" "c++"] > 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # Start with "set print object off" and "set print symbol off". diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp index ea4b2033b83..71ce810adad 100644 --- a/gdb/testsuite/gdb.cp/classes.exp +++ b/gdb/testsuite/gdb.cp/classes.exp @@ -34,7 +34,7 @@ if { [test_compiler_info "clang-*" "c++"] } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # Test ptype of class objects. diff --git a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp index 7afda5fbe82..19653a4ccc9 100644 --- a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp +++ b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp @@ -24,7 +24,7 @@ standard_testfile .cc # Do NOT compile with debug flag. if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++}]} { - return -1 + return } # Before setting the language, try to set a few simple breakpoints diff --git a/gdb/testsuite/gdb.cp/cold-clone.exp b/gdb/testsuite/gdb.cp/cold-clone.exp index 1fb7c2449af..d2c69c504fa 100644 --- a/gdb/testsuite/gdb.cp/cold-clone.exp +++ b/gdb/testsuite/gdb.cp/cold-clone.exp @@ -22,7 +22,7 @@ lappend flags optimize=-O2 lappend_include_file flags $srcdir/lib/attributes.h if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } gdb_test_multiple "break foo" "" { diff --git a/gdb/testsuite/gdb.cp/constexpr-field.exp b/gdb/testsuite/gdb.cp/constexpr-field.exp index 3e8a7b98513..c50ea3ef5d9 100644 --- a/gdb/testsuite/gdb.cp/constexpr-field.exp +++ b/gdb/testsuite/gdb.cp/constexpr-field.exp @@ -22,7 +22,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {c++ debug additional_flags=-std=c++17}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp index fb45313466b..c42c67a95e7 100644 --- a/gdb/testsuite/gdb.cp/cp-relocate.exp +++ b/gdb/testsuite/gdb.cp/cp-relocate.exp @@ -112,7 +112,7 @@ gdb_test_multiple "info file" "info file" { if { $func1_sec == $func2_sec } { untested "cp-relocate.exp - template functions in same sections" - return -1 + return } # Now start a clean GDB, for add-symbol-file tests. diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp index 555392b470a..f767a8b7bc6 100644 --- a/gdb/testsuite/gdb.cp/cpcompletion.exp +++ b/gdb/testsuite/gdb.cp/cpcompletion.exp @@ -56,7 +56,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Tests below are about tab-completion, which doesn't work if readline @@ -64,7 +64,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { if { ![readline_is_used] } { untested "no tab completion support without readline" - return -1 + return } # Test that completion is restricted by class name (all methods) diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl index 085dfdd0678..c9646755f0a 100644 --- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl +++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl @@ -706,7 +706,7 @@ standard_testfile cpexprs.cc set flags "$flags debug c++" if {[prepare_for_testing "failed to prepare" $testfile $srcfile "$flags"]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/cplabel.exp b/gdb/testsuite/gdb.cp/cplabel.exp index 0bb22cd96ad..e0301eb3628 100644 --- a/gdb/testsuite/gdb.cp/cplabel.exp +++ b/gdb/testsuite/gdb.cp/cplabel.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } set methods {"bar" "baz"} diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index b8ce5d7bdd0..62b149c9f35 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -21,7 +21,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp index e328b7c59c4..5c2be5de57b 100644 --- a/gdb/testsuite/gdb.cp/ctti.exp +++ b/gdb/testsuite/gdb.cp/ctti.exp @@ -27,7 +27,7 @@ standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp index 34fbf3c250e..3b42c85a627 100644 --- a/gdb/testsuite/gdb.cp/derivation.exp +++ b/gdb/testsuite/gdb.cp/derivation.exp @@ -36,7 +36,7 @@ standard_testfile derivation.cc derivation2.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } # Check inheritance of typedefs. diff --git a/gdb/testsuite/gdb.cp/destrprint.exp b/gdb/testsuite/gdb.cp/destrprint.exp index b0f1087a38d..f20255a4c4f 100644 --- a/gdb/testsuite/gdb.cp/destrprint.exp +++ b/gdb/testsuite/gdb.cp/destrprint.exp @@ -16,11 +16,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/disasm-func-name.exp b/gdb/testsuite/gdb.cp/disasm-func-name.exp index 77b872fe1ad..d4b6586dbde 100644 --- a/gdb/testsuite/gdb.cp/disasm-func-name.exp +++ b/gdb/testsuite/gdb.cp/disasm-func-name.exp @@ -24,7 +24,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile \ $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/dispcxx.exp index 0af655ad0a5..c20dbadd65c 100644 --- a/gdb/testsuite/gdb.cp/dispcxx.exp +++ b/gdb/testsuite/gdb.cp/dispcxx.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/empty-enum.exp b/gdb/testsuite/gdb.cp/empty-enum.exp index 437dd0ad086..e2b82d386f3 100644 --- a/gdb/testsuite/gdb.cp/empty-enum.exp +++ b/gdb/testsuite/gdb.cp/empty-enum.exp @@ -35,11 +35,11 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint "breakpt" diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp index f6d3f0cb971..36ab2f65969 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -26,11 +26,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto 'marker']} { - return -1 + return } # Returns a buffer corresponding to what GDB replies when asking for diff --git a/gdb/testsuite/gdb.cp/enum-class.exp b/gdb/testsuite/gdb.cp/enum-class.exp index b7858719f1e..26a496972fa 100644 --- a/gdb/testsuite/gdb.cp/enum-class.exp +++ b/gdb/testsuite/gdb.cp/enum-class.exp @@ -21,11 +21,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "ptype E1" \ diff --git a/gdb/testsuite/gdb.cp/exception.exp b/gdb/testsuite/gdb.cp/exception.exp index 987fa799c56..b7bba4c71d4 100644 --- a/gdb/testsuite/gdb.cp/exception.exp +++ b/gdb/testsuite/gdb.cp/exception.exp @@ -35,7 +35,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Set a catch catchpoint diff --git a/gdb/testsuite/gdb.cp/exceptprint.exp b/gdb/testsuite/gdb.cp/exceptprint.exp index b940f66f9a8..d0e0a07bfb9 100644 --- a/gdb/testsuite/gdb.cp/exceptprint.exp +++ b/gdb/testsuite/gdb.cp/exceptprint.exp @@ -18,16 +18,16 @@ standard_testfile .cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } if {[skip_libstdcxx_probe_tests]} { untested "could not find libstdc++ stap probe" - return -1 + return } proc do_continue_to_catchpoint {name} { @@ -71,7 +71,7 @@ do_exceptprint_tests "reference to struct" "{mv = 77}" delete_breakpoints if {![runto_main]} { - return -1 + return } with_test_prefix "2nd run" { diff --git a/gdb/testsuite/gdb.cp/expand-sals.exp b/gdb/testsuite/gdb.cp/expand-sals.exp index dad11bbd9b0..187073ec86e 100644 --- a/gdb/testsuite/gdb.cp/expand-sals.exp +++ b/gdb/testsuite/gdb.cp/expand-sals.exp @@ -17,10 +17,10 @@ require allow_cplus_tests set srcfile expand-sals.cc if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug c++}] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "func-line"] diff --git a/gdb/testsuite/gdb.cp/extern-c.exp b/gdb/testsuite/gdb.cp/extern-c.exp index 67a2ced0807..ce77afae1e4 100644 --- a/gdb/testsuite/gdb.cp/extern-c.exp +++ b/gdb/testsuite/gdb.cp/extern-c.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/filename.exp b/gdb/testsuite/gdb.cp/filename.exp index f9f6007ccc7..72fbbcfcebe 100644 --- a/gdb/testsuite/gdb.cp/filename.exp +++ b/gdb/testsuite/gdb.cp/filename.exp @@ -20,7 +20,7 @@ standard_testfile .cc include_file includefile if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/formatted-ref.exp b/gdb/testsuite/gdb.cp/formatted-ref.exp index 354c716a6c0..bc2ac9d36b2 100644 --- a/gdb/testsuite/gdb.cp/formatted-ref.exp +++ b/gdb/testsuite/gdb.cp/formatted-ref.exp @@ -33,7 +33,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc get_address { var } { diff --git a/gdb/testsuite/gdb.cp/gdb1355.exp b/gdb/testsuite/gdb.cp/gdb1355.exp index 900f9029c25..77e845b468d 100644 --- a/gdb/testsuite/gdb.cp/gdb1355.exp +++ b/gdb/testsuite/gdb.cp/gdb1355.exp @@ -30,7 +30,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp index 0a5b3088fa0..d0c96aeaab3 100644 --- a/gdb/testsuite/gdb.cp/gdb2384.exp +++ b/gdb/testsuite/gdb.cp/gdb2384.exp @@ -32,7 +32,7 @@ set sofile [standard_output_file gdb2384-base.so] if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${::testfile} @@ -40,7 +40,7 @@ gdb_load_shlib ${sofile} if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "First breakpoint"] diff --git a/gdb/testsuite/gdb.cp/gdb2495.exp b/gdb/testsuite/gdb.cp/gdb2495.exp index c3bac7a9ce4..aa5a2a16e43 100644 --- a/gdb/testsuite/gdb.cp/gdb2495.exp +++ b/gdb/testsuite/gdb.cp/gdb2495.exp @@ -42,7 +42,7 @@ standard_testfile .cc require {!target_info exists gdb,cannot_call_functions} if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/hang.exp b/gdb/testsuite/gdb.cp/hang.exp index f547f1bb159..bd6fbd24ae7 100644 --- a/gdb/testsuite/gdb.cp/hang.exp +++ b/gdb/testsuite/gdb.cp/hang.exp @@ -22,7 +22,7 @@ include_file hang.H if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3] {debug c++}]} { - return -1 + return } # As of May 1, 2002, GDB hangs trying to read the debug info for the diff --git a/gdb/testsuite/gdb.cp/impl-this.exp b/gdb/testsuite/gdb.cp/impl-this.exp index 213d41e664f..a8979f383c7 100644 --- a/gdb/testsuite/gdb.cp/impl-this.exp +++ b/gdb/testsuite/gdb.cp/impl-this.exp @@ -23,7 +23,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set gcc_used [test_compiler_info gcc-*-*] diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp index 50ccf608ef6..b69c9f58cce 100644 --- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp +++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp @@ -22,13 +22,13 @@ set lib_dlopen [shlib_target_file ${testfile}.so] # Use completely arbitrary file for $libfile source. if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} ${libfile} {debug c++}] != "" || [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++ shlib_load}] } { - return -1 + return } gdb_load_shlib $libfile if { ![runto_main] } { - return -1 + return } for {set i 0} {$i < 10} {incr i} { diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp index 5d7d12c40e9..dd2ea1a7afc 100644 --- a/gdb/testsuite/gdb.cp/inherit.exp +++ b/gdb/testsuite/gdb.cp/inherit.exp @@ -27,7 +27,7 @@ load_lib "cp-support.exp" standard_testfile misc.cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Single inheritance, print type definitions. diff --git a/gdb/testsuite/gdb.cp/iostream.exp b/gdb/testsuite/gdb.cp/iostream.exp index 39ccdb4087d..b23e8111532 100644 --- a/gdb/testsuite/gdb.cp/iostream.exp +++ b/gdb/testsuite/gdb.cp/iostream.exp @@ -21,7 +21,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp index 73527687ff8..cf072ba6c72 100644 --- a/gdb/testsuite/gdb.cp/local.exp +++ b/gdb/testsuite/gdb.cp/local.exp @@ -32,7 +32,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/m-data.exp b/gdb/testsuite/gdb.cp/m-data.exp index 1d1c94e107d..125c7e0483a 100644 --- a/gdb/testsuite/gdb.cp/m-data.exp +++ b/gdb/testsuite/gdb.cp/m-data.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp index 939e1880d64..a898bc934e5 100644 --- a/gdb/testsuite/gdb.cp/m-static.exp +++ b/gdb/testsuite/gdb.cp/m-static.exp @@ -37,7 +37,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/main-cp.exp b/gdb/testsuite/gdb.cp/main-cp.exp index bdca417e0b5..42175cd5ec3 100644 --- a/gdb/testsuite/gdb.cp/main-cp.exp +++ b/gdb/testsuite/gdb.cp/main-cp.exp @@ -25,7 +25,7 @@ lappend opts debug lappend opts c++ if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } { - return -1 + return } require {string eq [have_index $binfile] ""} diff --git a/gdb/testsuite/gdb.cp/many-args.exp b/gdb/testsuite/gdb.cp/many-args.exp index 49b5e28e976..a2b19b0edf5 100644 --- a/gdb/testsuite/gdb.cp/many-args.exp +++ b/gdb/testsuite/gdb.cp/many-args.exp @@ -24,7 +24,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/mb-ctor.exp b/gdb/testsuite/gdb.cp/mb-ctor.exp index 925c215f9d8..67fb8f1afe4 100644 --- a/gdb/testsuite/gdb.cp/mb-ctor.exp +++ b/gdb/testsuite/gdb.cp/mb-ctor.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {[test_compiler_info {clang-*-*} c++]} { diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-inline.exp index 4bb95547ccf..3a7d15ad218 100644 --- a/gdb/testsuite/gdb.cp/mb-inline.exp +++ b/gdb/testsuite/gdb.cp/mb-inline.exp @@ -26,7 +26,7 @@ include_file $hdrfile if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } set bp_location [gdb_get_line_number "set breakpoint here" $hdrfile] @@ -80,7 +80,7 @@ delete_breakpoints set bp_location [gdb_get_line_number "set multi-line breakpoint here" $hdrfile] if { ![runto_main] } { - return 0 + return } gdb_test "break $hdrfile:$bp_location" \ diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp index c9b78e8a16c..a1d55d3246f 100644 --- a/gdb/testsuite/gdb.cp/mb-templates.exp +++ b/gdb/testsuite/gdb.cp/mb-templates.exp @@ -22,7 +22,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set bp_location [gdb_get_line_number "set breakpoint here"] @@ -108,7 +108,7 @@ delete_breakpoints set bp_location [gdb_get_line_number "set multi-line breakpoint here"] if { ![runto_main] } { - return 0 + return } gdb_test "break $srcfile:$bp_location" \ diff --git a/gdb/testsuite/gdb.cp/member-name.exp b/gdb/testsuite/gdb.cp/member-name.exp index ca414c9915f..95f628076b7 100644 --- a/gdb/testsuite/gdb.cp/member-name.exp +++ b/gdb/testsuite/gdb.cp/member-name.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp index f7aa475d4f8..055b1d4e709 100644 --- a/gdb/testsuite/gdb.cp/member-ptr.exp +++ b/gdb/testsuite/gdb.cp/member-ptr.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/meth-typedefs.exp b/gdb/testsuite/gdb.cp/meth-typedefs.exp index 898bdd499e7..ba0fc6d9cbb 100644 --- a/gdb/testsuite/gdb.cp/meth-typedefs.exp +++ b/gdb/testsuite/gdb.cp/meth-typedefs.exp @@ -37,7 +37,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {c++ debug additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp index a8e62f816a3..5d4600b2ec2 100644 --- a/gdb/testsuite/gdb.cp/method-call-in-c.exp +++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp @@ -26,11 +26,11 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } { - return -1 + return } if {![runto_main]} { - return 0 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/method-ref-return.exp b/gdb/testsuite/gdb.cp/method-ref-return.exp index 8e082f36aa2..1e5e0619b01 100644 --- a/gdb/testsuite/gdb.cp/method-ref-return.exp +++ b/gdb/testsuite/gdb.cp/method-ref-return.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Set a breakpoint after the bar object is created and the reference is obtained. diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.exp index d890be1df9e..e0946651a6e 100644 --- a/gdb/testsuite/gdb.cp/method.exp +++ b/gdb/testsuite/gdb.cp/method.exp @@ -37,7 +37,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/minsym-fallback.exp b/gdb/testsuite/gdb.cp/minsym-fallback.exp index 46427d6905c..b4271027814 100644 --- a/gdb/testsuite/gdb.cp/minsym-fallback.exp +++ b/gdb/testsuite/gdb.cp/minsym-fallback.exp @@ -37,7 +37,7 @@ if {[gdb_compile $srcdir/$subdir/$srcfile $objfile object $nodebug_flags] != "" || [gdb_compile $srcdir/$subdir/$srcfile2 $objmainfile object $debug_flags] != "" || [gdb_compile "$objfile $objmainfile" $binfile executable $debug_flags] != ""} { untested "failed to compile" - return -1 + return } clean_restart ${executable} diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp index 974ad1a550c..e844ab9244e 100644 --- a/gdb/testsuite/gdb.cp/misc.exp +++ b/gdb/testsuite/gdb.cp/misc.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/namelessclass.exp b/gdb/testsuite/gdb.cp/namelessclass.exp index a247fcebb7b..e3be4cf666c 100644 --- a/gdb/testsuite/gdb.cp/namelessclass.exp +++ b/gdb/testsuite/gdb.cp/namelessclass.exp @@ -28,11 +28,11 @@ standard_testfile .S set csrcfile "${testfile}.cc" if {[prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Set a breakpoint in the lambda in A::doit (). */ diff --git a/gdb/testsuite/gdb.cp/namespace-enum.exp b/gdb/testsuite/gdb.cp/namespace-enum.exp index cc9c274ad49..8ccdd320c73 100644 --- a/gdb/testsuite/gdb.cp/namespace-enum.exp +++ b/gdb/testsuite/gdb.cp/namespace-enum.exp @@ -17,7 +17,7 @@ standard_testfile .cc namespace-enum-main.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type." diff --git a/gdb/testsuite/gdb.cp/namespace-nested-import.exp b/gdb/testsuite/gdb.cp/namespace-nested-import.exp index 1ec31c1903e..b2fb2d914cb 100644 --- a/gdb/testsuite/gdb.cp/namespace-nested-import.exp +++ b/gdb/testsuite/gdb.cp/namespace-nested-import.exp @@ -17,7 +17,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp index 6c5dd667060..b39b2a164fc 100644 --- a/gdb/testsuite/gdb.cp/namespace.exp +++ b/gdb/testsuite/gdb.cp/namespace.exp @@ -38,7 +38,7 @@ if {[test_compiler_info {gcc-[0-3]-*}] if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "show lang" "auto; currently c\\+\\+.*" diff --git a/gdb/testsuite/gdb.cp/nested-class-func-class.exp b/gdb/testsuite/gdb.cp/nested-class-func-class.exp index f2d6f317b14..64b2ae8343c 100644 --- a/gdb/testsuite/gdb.cp/nested-class-func-class.exp +++ b/gdb/testsuite/gdb.cp/nested-class-func-class.exp @@ -22,11 +22,11 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "BP 1"] diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/nested-types.exp index e0a9d163582..9806bb6d5c8 100644 --- a/gdb/testsuite/gdb.cp/nested-types.exp +++ b/gdb/testsuite/gdb.cp/nested-types.exp @@ -27,7 +27,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++}]} { - return -1 + return } # Build the node given by ID (a number representing the struct S[ID] in diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/nextoverthrow.exp index 2f34795d201..2dbaae12869 100644 --- a/gdb/testsuite/gdb.cp/nextoverthrow.exp +++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp @@ -19,7 +19,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { @@ -28,7 +28,7 @@ if {![runto_main]} { if {![skip_unwinder_tests]} { unsupported "nextoverthrow.exp could not find _Unwind_DebugHook" - return -1 + return } # Set a temporary breakpoint and then continue to it. diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp index 202e1f0d0f1..14e42a2e361 100644 --- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp +++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp @@ -18,7 +18,7 @@ standard_testfile exceptprint.cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # This tests that $_exception gives an error when the systemtap probes @@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { gdb_test "maint ignore-probes libstdcxx .*" ".*OBJNAME: ''" if {![runto_main]} { - return -1 + return } gdb_test "catch throw" "Catchpoint $decimal \\(throw\\)" \ diff --git a/gdb/testsuite/gdb.cp/non-trivial-retval.exp b/gdb/testsuite/gdb.cp/non-trivial-retval.exp index 0b70d3546e9..f5c32dca079 100644 --- a/gdb/testsuite/gdb.cp/non-trivial-retval.exp +++ b/gdb/testsuite/gdb.cp/non-trivial-retval.exp @@ -37,11 +37,11 @@ if {[have_fvar_tracking]} { if {[prepare_for_testing "failed to prepare" $testfile $srcfile [list debug c++ $additional_flags]]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/noparam.exp b/gdb/testsuite/gdb.cp/noparam.exp index 1607d64f8ee..8ce8becd91b 100644 --- a/gdb/testsuite/gdb.cp/noparam.exp +++ b/gdb/testsuite/gdb.cp/noparam.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . if { [prepare_for_testing "failed to prepare" "noparam" "noparam.cc" {debug c++}] } { - return -1 + return } # Check if GDB does not crash. diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp index e384d8d77eb..459efbf12d0 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -170,16 +170,16 @@ Dwarf::assemble $asm_file { if {[gdb_compile $srcdir/$subdir/$srcfile ${binfile}1.o \ object {c++ debug}] != ""} { - return -1 + return } if {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} { - return -1 + return } if {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \ $binfile executable {c++}] != ""} { - return -1 + return } clean_restart $testfile @@ -304,12 +304,12 @@ set the_dwarf [format { Dwarf::assemble $asm_file $the_dwarf if {[gdb_compile $asm_file ${binfile}3.o object {nodebug}] != ""} { - return -1 + return } if {[gdb_compile [list ${binfile}1.o ${binfile}3.o] \ ${binfile}-r executable {c++}] != ""} { - return -1 + return } clean_restart diff --git a/gdb/testsuite/gdb.cp/nsdecl.exp b/gdb/testsuite/gdb.cp/nsdecl.exp index 72d20b618dc..e068f419db8 100644 --- a/gdb/testsuite/gdb.cp/nsdecl.exp +++ b/gdb/testsuite/gdb.cp/nsdecl.exp @@ -19,7 +19,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsimport.exp b/gdb/testsuite/gdb.cp/nsimport.exp index bab4701f16f..2ac4c0b4d5b 100644 --- a/gdb/testsuite/gdb.cp/nsimport.exp +++ b/gdb/testsuite/gdb.cp/nsimport.exp @@ -20,7 +20,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp index 220fe897387..58d90420c82 100644 --- a/gdb/testsuite/gdb.cp/nsrecurs.exp +++ b/gdb/testsuite/gdb.cp/nsrecurs.exp @@ -17,7 +17,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsstress.exp b/gdb/testsuite/gdb.cp/nsstress.exp index 872bf62fd6e..eebfaf30fef 100644 --- a/gdb/testsuite/gdb.cp/nsstress.exp +++ b/gdb/testsuite/gdb.cp/nsstress.exp @@ -19,7 +19,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp index d76676fda9e..7b1d3e5283a 100644 --- a/gdb/testsuite/gdb.cp/nsusing.exp +++ b/gdb/testsuite/gdb.cp/nsusing.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/operator.exp b/gdb/testsuite/gdb.cp/operator.exp index 15dfee5a9fe..1e22f8f74bf 100644 --- a/gdb/testsuite/gdb.cp/operator.exp +++ b/gdb/testsuite/gdb.cp/operator.exp @@ -17,7 +17,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ {debug c++ additional_flags=-Wno-unused-comparison}] } { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/overload-const.exp b/gdb/testsuite/gdb.cp/overload-const.exp index a036aee6a6c..44261784858 100644 --- a/gdb/testsuite/gdb.cp/overload-const.exp +++ b/gdb/testsuite/gdb.cp/overload-const.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $testfile.cc {c++ debug}]} { - return -1 + return } gdb_test_no_output "set language c++" diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp index 5d586b19e24..9c0149bdfe0 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -29,7 +29,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Set it up at a breakpoint so we can play with the variable values. diff --git a/gdb/testsuite/gdb.cp/ovldbreak.exp b/gdb/testsuite/gdb.cp/ovldbreak.exp index a4e853e2986..dce7d3b414b 100644 --- a/gdb/testsuite/gdb.cp/ovldbreak.exp +++ b/gdb/testsuite/gdb.cp/ovldbreak.exp @@ -33,7 +33,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # set it up at a breakpoint so we can play with the variable values diff --git a/gdb/testsuite/gdb.cp/ovsrch.exp b/gdb/testsuite/gdb.cp/ovsrch.exp index 4b839239551..5fccdb43d4d 100644 --- a/gdb/testsuite/gdb.cp/ovsrch.exp +++ b/gdb/testsuite/gdb.cp/ovsrch.exp @@ -61,7 +61,7 @@ include_file ovsrch.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/paramless.exp b/gdb/testsuite/gdb.cp/paramless.exp index 65f4a461f6b..4c9b6a8b8bd 100644 --- a/gdb/testsuite/gdb.cp/paramless.exp +++ b/gdb/testsuite/gdb.cp/paramless.exp @@ -27,7 +27,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } foreach ordinary {"outer::fn" "outer::fn" "toplev"} { diff --git a/gdb/testsuite/gdb.cp/paren-type.exp b/gdb/testsuite/gdb.cp/paren-type.exp index fef63979cff..16df250c61b 100644 --- a/gdb/testsuite/gdb.cp/paren-type.exp +++ b/gdb/testsuite/gdb.cp/paren-type.exp @@ -16,7 +16,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${testfile}.cc {c++ debug}] } { - return -1 + return } gdb_test_no_output "set breakpoint pending off" diff --git a/gdb/testsuite/gdb.cp/parse-lang.exp b/gdb/testsuite/gdb.cp/parse-lang.exp index 04504a091b0..0b1d2b6bcf1 100644 --- a/gdb/testsuite/gdb.cp/parse-lang.exp +++ b/gdb/testsuite/gdb.cp/parse-lang.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # Place the breakpoint before inferior gets started. Then the breakpoint diff --git a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp index e4c56ee2b7e..3d704635901 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp @@ -31,11 +31,11 @@ standard_testfile .cc set options {debug c++ additional_flags=-std=c++11} if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # GCC version <= 6 and Clang do not emit DW_AT_defaulted and DW_AT_deleted. diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pass-by-ref.exp index fde95d4d0a4..66bc4b35658 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp @@ -336,11 +336,11 @@ gdb_produce_source $srcfile $program set options {debug c++ additional_flags=-std=c++11} if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} { - return -1 + return } if {![runto_main]} { - return -1 + return } set bp_location [gdb_get_line_number "stop here"] diff --git a/gdb/testsuite/gdb.cp/pointer-to-member.exp b/gdb/testsuite/gdb.cp/pointer-to-member.exp index 5370cdbed18..d2d04b27ae2 100644 --- a/gdb/testsuite/gdb.cp/pointer-to-member.exp +++ b/gdb/testsuite/gdb.cp/pointer-to-member.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } gdb_test "print ptm" " = &A::i" diff --git a/gdb/testsuite/gdb.cp/pr-1023.exp b/gdb/testsuite/gdb.cp/pr-1023.exp index 5e15b649c77..e524e88bb39 100644 --- a/gdb/testsuite/gdb.cp/pr-1023.exp +++ b/gdb/testsuite/gdb.cp/pr-1023.exp @@ -27,7 +27,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-1210.exp index cf42f58b228..c215d0f1a91 100644 --- a/gdb/testsuite/gdb.cp/pr-1210.exp +++ b/gdb/testsuite/gdb.cp/pr-1210.exp @@ -26,7 +26,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.exp index 1952463063f..4312eebb067 100644 --- a/gdb/testsuite/gdb.cp/pr-574.exp +++ b/gdb/testsuite/gdb.cp/pr-574.exp @@ -35,7 +35,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr10687.exp b/gdb/testsuite/gdb.cp/pr10687.exp index b27de972088..c2063f975ae 100644 --- a/gdb/testsuite/gdb.cp/pr10687.exp +++ b/gdb/testsuite/gdb.cp/pr10687.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.cp/pr12028.exp index b656a88975d..f4e0aefb0d4 100644 --- a/gdb/testsuite/gdb.cp/pr12028.exp +++ b/gdb/testsuite/gdb.cp/pr12028.exp @@ -16,7 +16,7 @@ standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } { - return -1 + return } ############################################ diff --git a/gdb/testsuite/gdb.cp/pr17132.exp b/gdb/testsuite/gdb.cp/pr17132.exp index 3492425534a..06d329c81fd 100644 --- a/gdb/testsuite/gdb.cp/pr17132.exp +++ b/gdb/testsuite/gdb.cp/pr17132.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/pr17494.exp b/gdb/testsuite/gdb.cp/pr17494.exp index 33bc4831239..ab23e113382 100644 --- a/gdb/testsuite/gdb.cp/pr17494.exp +++ b/gdb/testsuite/gdb.cp/pr17494.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Break here"] diff --git a/gdb/testsuite/gdb.cp/pr9067.exp b/gdb/testsuite/gdb.cp/pr9067.exp index 43f4aa75796..043690123f8 100644 --- a/gdb/testsuite/gdb.cp/pr9067.exp +++ b/gdb/testsuite/gdb.cp/pr9067.exp @@ -22,7 +22,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr9167.exp b/gdb/testsuite/gdb.cp/pr9167.exp index d1ceb6a4b9a..8ae4356a6da 100644 --- a/gdb/testsuite/gdb.cp/pr9167.exp +++ b/gdb/testsuite/gdb.cp/pr9167.exp @@ -22,7 +22,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/pr9631.exp b/gdb/testsuite/gdb.cp/pr9631.exp index f0b4fb5dc22..71cdda50d98 100644 --- a/gdb/testsuite/gdb.cp/pr9631.exp +++ b/gdb/testsuite/gdb.cp/pr9631.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/print-demangle.exp b/gdb/testsuite/gdb.cp/print-demangle.exp index 98c0167d42d..9065adc3eac 100644 --- a/gdb/testsuite/gdb.cp/print-demangle.exp +++ b/gdb/testsuite/gdb.cp/print-demangle.exp @@ -18,7 +18,7 @@ require allow_cplus_tests standard_testfile bool.cc if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { - return -1 + return } runto_main diff --git a/gdb/testsuite/gdb.cp/print-global-stub.exp b/gdb/testsuite/gdb.cp/print-global-stub.exp index df29bb61ee9..f82df5931da 100644 --- a/gdb/testsuite/gdb.cp/print-global-stub.exp +++ b/gdb/testsuite/gdb.cp/print-global-stub.exp @@ -25,7 +25,7 @@ set binfile [standard_output_file $testfile] if { [gdb_compile $srcdir/$subdir/$srcfile $binfile object \ {c++ debug}] != "" } { untested "failed to compile" - return -1 + return } clean_restart $testfile diff --git a/gdb/testsuite/gdb.cp/print-method-args.exp b/gdb/testsuite/gdb.cp/print-method-args.exp index dd9cb8be748..17f4204c44a 100644 --- a/gdb/testsuite/gdb.cp/print-method-args.exp +++ b/gdb/testsuite/gdb.cp/print-method-args.exp @@ -22,7 +22,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } set re \ diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp index bad147b874d..fdc1c91bf23 100644 --- a/gdb/testsuite/gdb.cp/printmethod.exp +++ b/gdb/testsuite/gdb.cp/printmethod.exp @@ -28,7 +28,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/psmang.exp b/gdb/testsuite/gdb.cp/psmang.exp index bd51b8b03a3..d29b51f867e 100644 --- a/gdb/testsuite/gdb.cp/psmang.exp +++ b/gdb/testsuite/gdb.cp/psmang.exp @@ -182,7 +182,7 @@ standard_testfile psmang1.cc psmang2.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } gdb_test "break s::method1" "Breakpoint .* at .*: file .*psmang1.cc.*" diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb.cp/psymtab-parameter.exp index 9412945fb09..aac95195922 100644 --- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp +++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp @@ -19,7 +19,7 @@ standard_testfile .cc if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.x" object {debug c++}] != "" } { untested "failed to compile" - return -1 + return } clean_restart $testfile.x diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp index c0129a71f55..bfc6e176cc1 100644 --- a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp +++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } { - return -1 + return } gdb_test "whatis v_my_int" "type = my_int" diff --git a/gdb/testsuite/gdb.cp/ptype-flags.exp b/gdb/testsuite/gdb.cp/ptype-flags.exp index c97c8b436de..4530f99a50c 100644 --- a/gdb/testsuite/gdb.cp/ptype-flags.exp +++ b/gdb/testsuite/gdb.cp/ptype-flags.exp @@ -22,7 +22,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/re-set-overloaded.exp b/gdb/testsuite/gdb.cp/re-set-overloaded.exp index d63be344252..e5492c67c6e 100644 --- a/gdb/testsuite/gdb.cp/re-set-overloaded.exp +++ b/gdb/testsuite/gdb.cp/re-set-overloaded.exp @@ -22,7 +22,7 @@ set sofile [standard_output_file ${testfile}.so] if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != "" || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} { untested "failed to compile" - return -1 + return } clean_restart $testfile diff --git a/gdb/testsuite/gdb.cp/readnow-language.exp b/gdb/testsuite/gdb.cp/readnow-language.exp index 73199bf15a1..fb4e6280539 100644 --- a/gdb/testsuite/gdb.cp/readnow-language.exp +++ b/gdb/testsuite/gdb.cp/readnow-language.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[build_executable ${testfile}.exp $testfile ${testfile}.cc {c++ debug}] == -1} { - return -1 + return } save_vars { GDBFLAGS } { diff --git a/gdb/testsuite/gdb.cp/ref-params.exp b/gdb/testsuite/gdb.cp/ref-params.exp index 31144fcba21..0238d938dc1 100644 --- a/gdb/testsuite/gdb.cp/ref-params.exp +++ b/gdb/testsuite/gdb.cp/ref-params.exp @@ -25,7 +25,7 @@ require allow_cplus_tests standard_testfile .cc if {[build_executable $testfile.exp $testfile $srcfile {debug c++}] == -1} { - return -1 + return } proc gdb_start_again { text } { diff --git a/gdb/testsuite/gdb.cp/ref-types.exp b/gdb/testsuite/gdb.cp/ref-types.exp index d56d10ea4bb..b55b6ffe7f6 100644 --- a/gdb/testsuite/gdb.cp/ref-types.exp +++ b/gdb/testsuite/gdb.cp/ref-types.exp @@ -25,7 +25,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/rtti.exp b/gdb/testsuite/gdb.cp/rtti.exp index b694ab935e3..7fe140c5c58 100644 --- a/gdb/testsuite/gdb.cp/rtti.exp +++ b/gdb/testsuite/gdb.cp/rtti.exp @@ -38,7 +38,7 @@ include_file rtti.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp index a73708d9211..36003791218 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp @@ -23,11 +23,11 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # Prevent symbol on address 0x0 being printed. diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index b9da32c244e..6083606567a 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -26,14 +26,14 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } # Set it up at a breakpoint so we can play with the variable values. if {![runto 'marker1']} { untested "couldn't run to marker1" - return -1 + return } # Prevent symbol on address 0x0 being printed. diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp index 6b4c891cef3..a4c7156bda7 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp @@ -22,7 +22,7 @@ standard_testfile .cc if {[build_executable $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}] == -1} { - return -1 + return } proc gdb_start_again {text prefix} { diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp index e251efebf35..af10ce37b7f 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp @@ -22,18 +22,18 @@ standard_testfile .cc if {[prepare_for_testing $testfile.exp $testfile $srcfile \ {debug c++ additional_flags="-std=gnu++11"}]} { - return -1 + return } # # Set it up at a breakpoint so we can play with the variable values. # if {![runto_main]} { - return -1 + return } if {![runto 'marker1']} { - return -1 + return } gdb_test "up" ".*main.*" "up from marker1 1" diff --git a/gdb/testsuite/gdb.cp/save-bp-qualified.exp b/gdb/testsuite/gdb.cp/save-bp-qualified.exp index a6ee09c6cdc..a6851ba9662 100644 --- a/gdb/testsuite/gdb.cp/save-bp-qualified.exp +++ b/gdb/testsuite/gdb.cp/save-bp-qualified.exp @@ -18,7 +18,7 @@ standard_testfile .cc if { [build_executable "failed to prepare" ${testfile} $srcfile {debug c++}] } { - return -1 + return } proc restart {} { diff --git a/gdb/testsuite/gdb.cp/scope-err.exp b/gdb/testsuite/gdb.cp/scope-err.exp index 3e259140211..236928d8490 100644 --- a/gdb/testsuite/gdb.cp/scope-err.exp +++ b/gdb/testsuite/gdb.cp/scope-err.exp @@ -22,11 +22,11 @@ standard_testfile .cc set exefile $testfile if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return 0 + return } # Run to a location in the file. diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp index 1fed09a366c..d095f85324a 100644 --- a/gdb/testsuite/gdb.cp/shadow.exp +++ b/gdb/testsuite/gdb.cp/shadow.exp @@ -20,7 +20,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/static-method.exp b/gdb/testsuite/gdb.cp/static-method.exp index 527352f4ac4..7ab795d0115 100644 --- a/gdb/testsuite/gdb.cp/static-method.exp +++ b/gdb/testsuite/gdb.cp/static-method.exp @@ -43,7 +43,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } # The GDB workaround for GCC PR debug/45682 does not apply as it requires diff --git a/gdb/testsuite/gdb.cp/static-print-quit.exp b/gdb/testsuite/gdb.cp/static-print-quit.exp index 088abb9b9f8..19756f64732 100644 --- a/gdb/testsuite/gdb.cp/static-print-quit.exp +++ b/gdb/testsuite/gdb.cp/static-print-quit.exp @@ -19,7 +19,7 @@ standard_testfile .cc if { [gdb_compile $srcdir/$subdir/$srcfile $binfile.o object {debug c++}] != ""} { untested "failed to compile" - return -1 + return } clean_restart $testfile.o diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/gdb.cp/static-typedef-print.exp index 2d0b9869725..579ddf67168 100644 --- a/gdb/testsuite/gdb.cp/static-typedef-print.exp +++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp @@ -18,11 +18,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "print a" \ diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp index 08694a67afb..e8bb998231b 100644 --- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp +++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp @@ -16,7 +16,7 @@ standard_testfile .cc if {[test_compiler_info gcc*] && ![supports_statement_frontiers] } { - return -1 + return } # Compile the test source with USE_NEXT_INLINE_H defined (when diff --git a/gdb/testsuite/gdb.cp/stub-array-size.exp b/gdb/testsuite/gdb.cp/stub-array-size.exp index 527f74fe8e2..fab9754dcc9 100644 --- a/gdb/testsuite/gdb.cp/stub-array-size.exp +++ b/gdb/testsuite/gdb.cp/stub-array-size.exp @@ -26,7 +26,7 @@ include_file stub-array-size.h if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \ {c++ debug}]} { - return -1 + return } gdb_test "print sizeof(a)/sizeof(a\[0\])" "10" diff --git a/gdb/testsuite/gdb.cp/subtypes.exp b/gdb/testsuite/gdb.cp/subtypes.exp index 31c8c226492..187bd494902 100644 --- a/gdb/testsuite/gdb.cp/subtypes.exp +++ b/gdb/testsuite/gdb.cp/subtypes.exp @@ -27,7 +27,7 @@ include_file subtypes.h if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2] \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } # Xfail for superfluous DW_TAG_lexical_block, gcc PR debug/55541. diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temargs.exp index eb1d987c674..ff4ae3bf574 100644 --- a/gdb/testsuite/gdb.cp/temargs.exp +++ b/gdb/testsuite/gdb.cp/temargs.exp @@ -23,11 +23,11 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile \ {debug c++ additional_flags=-std=c++11}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } # gcc 4.4 and earlier don't emit enough info for some of our template tests. diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp index 3531b231e5d..044190f1fac 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -30,7 +30,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } { } if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} { - return -1 + return } # diff --git a/gdb/testsuite/gdb.cp/try_catch.exp b/gdb/testsuite/gdb.cp/try_catch.exp index 6a8e6883477..663f42a9c0e 100644 --- a/gdb/testsuite/gdb.cp/try_catch.exp +++ b/gdb/testsuite/gdb.cp/try_catch.exp @@ -27,7 +27,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/typed-enum.exp b/gdb/testsuite/gdb.cp/typed-enum.exp index 7fc3759ef02..a2021abd64c 100644 --- a/gdb/testsuite/gdb.cp/typed-enum.exp +++ b/gdb/testsuite/gdb.cp/typed-enum.exp @@ -25,7 +25,7 @@ lappend opts c++ lappend opts additional_flags=-std=c++11 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} { - return -1 + return } gdb_test "print (int)byte_val" "= 128" diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/typedef-base.exp index 97ce29f2a9c..358b510e7f1 100644 --- a/gdb/testsuite/gdb.cp/typedef-base.exp +++ b/gdb/testsuite/gdb.cp/typedef-base.exp @@ -20,11 +20,11 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_test "ptype C::x" \ diff --git a/gdb/testsuite/gdb.cp/typedef-operator.exp b/gdb/testsuite/gdb.cp/typedef-operator.exp index 4e45dd8a4fb..9513b3725dc 100644 --- a/gdb/testsuite/gdb.cp/typedef-operator.exp +++ b/gdb/testsuite/gdb.cp/typedef-operator.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} { - return -1 + return } gdb_test_no_output "set language c++" @@ -28,7 +28,7 @@ gdb_test_no_output "set language c++" gdb_test "p *u" {You can't do that without a process to debug.} "test crash" if {![runto_main]} { - return -1 + return } gdb_test "p *v" " = 42" "test typedef" diff --git a/gdb/testsuite/gdb.cp/typeid.exp b/gdb/testsuite/gdb.cp/typeid.exp index 06ba7468c75..4587ec0199e 100644 --- a/gdb/testsuite/gdb.cp/typeid.exp +++ b/gdb/testsuite/gdb.cp/typeid.exp @@ -18,7 +18,7 @@ standard_testfile .cc require allow_cplus_tests if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc do_typeid_tests {started} { @@ -83,7 +83,7 @@ with_test_prefix "before starting" { } if {![runto_main]} { - return -1 + return } with_test_prefix "after starting" { diff --git a/gdb/testsuite/gdb.cp/userdef.exp b/gdb/testsuite/gdb.cp/userdef.exp index 68362fed2b0..01182c4a9f1 100644 --- a/gdb/testsuite/gdb.cp/userdef.exp +++ b/gdb/testsuite/gdb.cp/userdef.exp @@ -24,7 +24,7 @@ require allow_stl_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/using-crash.exp b/gdb/testsuite/gdb.cp/using-crash.exp index 8334006f7c3..1f5e4ce7eb4 100644 --- a/gdb/testsuite/gdb.cp/using-crash.exp +++ b/gdb/testsuite/gdb.cp/using-crash.exp @@ -15,7 +15,7 @@ standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } runto "foo" diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp index 676b36943d2..c1b1158a4b5 100644 --- a/gdb/testsuite/gdb.cp/var-tag.exp +++ b/gdb/testsuite/gdb.cp/var-tag.exp @@ -23,7 +23,7 @@ standard_testfile var-tag.cc var-tag-2.cc var-tag-3.cc var-tag-4.cc if {[prepare_for_testing "failed to prepare" $testfile \ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} { - return -1 + return } proc do_global_tests {lang} { diff --git a/gdb/testsuite/gdb.cp/virtbase.exp b/gdb/testsuite/gdb.cp/virtbase.exp index b0c43fa87ea..530587ac775 100644 --- a/gdb/testsuite/gdb.cp/virtbase.exp +++ b/gdb/testsuite/gdb.cp/virtbase.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/virtbase2.exp b/gdb/testsuite/gdb.cp/virtbase2.exp index ae0424142f7..635635a0d28 100644 --- a/gdb/testsuite/gdb.cp/virtbase2.exp +++ b/gdb/testsuite/gdb.cp/virtbase2.exp @@ -20,7 +20,7 @@ require allow_cplus_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp index 21e300e4ffc..eecf4611e23 100644 --- a/gdb/testsuite/gdb.cp/virtfunc.exp +++ b/gdb/testsuite/gdb.cp/virtfunc.exp @@ -25,7 +25,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } proc test_ptype_of_classes {} { diff --git a/gdb/testsuite/gdb.cp/virtfunc2.exp b/gdb/testsuite/gdb.cp/virtfunc2.exp index 761453f6227..6d4b83e7ba4 100644 --- a/gdb/testsuite/gdb.cp/virtfunc2.exp +++ b/gdb/testsuite/gdb.cp/virtfunc2.exp @@ -25,7 +25,7 @@ load_lib "cp-support.exp" standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.cp/vla-cxx.exp b/gdb/testsuite/gdb.cp/vla-cxx.exp index 6fe42422c9f..3e32cb96538 100644 --- a/gdb/testsuite/gdb.cp/vla-cxx.exp +++ b/gdb/testsuite/gdb.cp/vla-cxx.exp @@ -20,11 +20,11 @@ lappend flags debug lappend flags c++ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } { - return -1 + return } if {![runto_main]} { - return -1 + return } gdb_breakpoint [gdb_get_line_number "Before pointer assignment"] diff --git a/gdb/testsuite/gdb.cp/watch-cp.exp b/gdb/testsuite/gdb.cp/watch-cp.exp index 31a66864fe3..906002b754f 100644 --- a/gdb/testsuite/gdb.cp/watch-cp.exp +++ b/gdb/testsuite/gdb.cp/watch-cp.exp @@ -18,7 +18,7 @@ require allow_cplus_tests allow_hw_watchpoint_tests standard_testfile .cc if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { - return -1 + return } if {![runto_main]} {