@@ -37,11 +37,11 @@ set objmainfile [standard_output_file ${testfile}-main.o]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $objsfile object {}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile2}" $objfuncfile object {}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile3}" $objmainfile object {debug}] != ""
|| [gdb_compile "$objfuncfile $objsfile $objmainfile" $binfile executable {}] != "" } {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -25,11 +25,11 @@ set MIFLAGS "-i=mi"
#
standard_testfile pthreads.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
mi_clean_restart $::testfile
mi_runto_main
check_mi_and_console_threads "at main"
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
standard_testfile .c
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \
executable {debug additional_flags=-std=gnu99}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\" -ex \"set mi-async\""
mi_clean_restart $::testfile
@@ -24,11 +24,11 @@ standard_testfile
require allow_xml_test
require can_spawn_for_attach
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_gdb_start]} {
return
}
@@ -21,11 +21,11 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart ${::testfile}
# Start execution to establish a connection.
@@ -30,19 +30,19 @@ set lib_sl2 [standard_output_file pendshr2.sl]
set lib_opts "debug"
if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
|| [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
set MIFLAGS "-i=mi"
set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc test_insert_delete_modify { } {
global mi_gdb_prompt
global lib_sl1 lib_sl2
@@ -17,11 +17,11 @@
load_lib mi-support.exp
standard_testfile .cc
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug c++}] != "" } {
- return -1
+ return
}
# Generate the regexp pattern used to match the breakpoint description emitted
# in the various breakpoint command results/events.
#
@@ -18,11 +18,11 @@
load_lib mi-support.exp
standard_testfile .c
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
# Generate the regexp pattern used to match the breakpoint description emitted
# in the various breakpoint command results/events.
#
@@ -22,16 +22,16 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
set libstdcxx_probe_tests_supported [expr {![mi_skip_libstdcxx_probe_tests]}]
# Grab some line numbers we'll need.
set catch_1_lineno [gdb_get_line_number "Catch 1"]
@@ -18,20 +18,20 @@ require allow_shlib_tests
standard_testfile mi-catch-load.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set testfile2 mi-catch-load-so
set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}.so]
set binfile2_dlopen [shlib_target_file ${testfile2}.so]
if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug}] != "" } {
untested "failed to compile shared library"
- return -1
+ return
}
gdb_download_shlib $binfile2
# test -catch-load
@@ -20,11 +20,11 @@ load_lib mi-support.exp
standard_testfile
if {[build_executable $testfile.exp $testfile ${srcfile} "debug pthreads"] == -1} {
untested "failed to compile"
- return -1
+ return
}
set main_break_line [gdb_get_line_number "main break line"]
set any "\[^\r\n\]*"
@@ -21,11 +21,11 @@ load_lib mi-support.exp
set MIFLAGS "-i=mi"
standard_testfile
if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
- return -1
+ return
}
# Create a breakpoint with a condition that invokes an inferior
# function call, that will segfault. Run until GDB hits the
# breakpoint and check how GDB reports the failed condition check.
@@ -24,11 +24,11 @@ load_lib mi-support.exp
set MIFLAGS "-i=mi"
standard_testfile .cc
if {[build_executable ${testfile}.exp ${binfile} ${srcfile} {debug c++}]} {
- return -1
+ return
}
# Create a breakpoint with a condition that invokes an inferior
# function call, that will segfault. Run until GDB hits the
# breakpoint and check how GDB reports the failed condition check.
@@ -22,11 +22,11 @@ require isnative
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
untested "failed to compile"
- return -1
+ return
}
set corefile [core_find $binfile {}]
if {$corefile == ""} {
untested "unable to create or find corefile"
@@ -29,16 +29,16 @@ set lib_sl1 [standard_output_file $libfile1.sl]
set lib_opts debug
set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if {[gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -23,11 +23,11 @@ set flags {}
lappend flags debug
lappend_include_file flags $srcdir/lib/unbuffer_output.c
if {[build_executable $testfile.exp $testfile $srcfile $flags] == -1} {
untested "failed to compile"
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
set dp_location1 [gdb_get_line_number "set dprintf 1 here"]
@@ -18,11 +18,11 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc test_list_thread_groups { } {
global hex
global decimal
@@ -24,11 +24,11 @@ require allow_gdbserver_tests
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart]} {
return
}
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
standard_testfile "mi-fortran-modules.f90" "mi-fortran-modules-2.f90"
if {[build_executable "failed to prepare" ${testfile} \
[list $srcfile2 $srcfile] {debug f90}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
mi_runto_main
@@ -30,17 +30,17 @@ set srcfileabs [standard_output_file $srcfile]
# storing it in the executable's debug info, removing the double
# slash. This nullifies the "compare_filenames_for_search does
# not match" test when using Clang (it can never fail).
if { [regsub {/[^/]+$} $srcfileabs {/\0} srcfileabs] != 1 } {
xfail "cannot double the last slash separator"
- return -1
+ return
}
if { [regsub {^(/[^/]+)/} $srcfileabs {\1subst/} srcfileabssubst] != 1
|| [regsub {^(/[^/]+)/.*$} $srcfileabs {\1} initdir] != 1 } {
xfail "missing root subdirectory"
- return -1
+ return
}
# Generate a regular expression which to match $srcfileabs with
# or without the doubled slash. This is used by the substituted
# fullname test.
@@ -51,11 +51,11 @@ set f [open $srcfileabs "w"]
puts $f "int main (void) { return 0; }"
close $f
if { [gdb_compile "$srcfileabs" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
file delete -- $srcfileabs
if {[mi_clean_restart $::testfile]} {
@@ -17,21 +17,21 @@ load_lib mi-support.exp
set MIFLAGS "-i=mi"
# This test is Linux-only.
if {![istarget *-*-linux*]} {
unsupported "mi-info-os.exp"
- return -1
+ return
}
# Support for XML-output is needed to run this test.
require allow_xml_test
standard_testfile basics.c
if {[build_executable "Failed to build $testfile" $testfile $srcfile \
debug]} {
- return -1;
+ return;
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -42,11 +42,11 @@ if {[mi_clean_restart $::testfile]} {
# that and cover all targets is to run to main, with mi_runto_main.
# However, with native configurations, -info-os should work before
# running any program, so we want to avoid "run". Using
# mi_gdb_target_load directly instead achieves this.
if {[mi_gdb_target_load] < 0} {
- return -1
+ return
}
# Try the argument-less form that lists all the types in a table.
mi_gdb_test "-info-os" ".*\\^done,OSDataTable=.*" "-info-os"
@@ -21,11 +21,11 @@ set MIFLAGS "-i=mi"
standard_testfile .c -base.c
if {[build_executable $testfile.exp $testfile \
[list $srcfile $srcfile2] debug]} {
untested $testfile.exp
- return -1
+ return
}
mi_clean_restart $::testfile
set readnow_p [mi_readnow]
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
set exefile $testfile
if {[build_executable "failed to prepare" $exefile $srcfile {debug c++}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
# Turn off the pending breakpoint queries.
@@ -19,17 +19,17 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
set opts {debug}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
set milogfile [standard_output_file "milog.txt"]
mi_gdb_test "-gdb-set logging file $milogfile" "\\^done" \
@@ -15,11 +15,11 @@
standard_testfile basics.c
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested "failed to compile"
- return -1
+ return
}
load_lib mi-support.exp
if {[mi_clean_restart $::testfile]} {
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
#
standard_testfile non-stop-exit.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -33,11 +33,11 @@ proc mi_nonstop_resume { command test } {
#
standard_testfile non-stop.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
@@ -36,11 +36,11 @@ proc mi_nonstop_resume { command test } {
standard_testfile ns-stale-regcache.c
set options [list debug]
if {[gdb_compile "$srcdir/$subdir/$srcfile" \
$binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
#
standard_testfile nsintrall.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
#
standard_testfile nsmoribund.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -28,11 +28,11 @@ set MIFLAGS "-i=mi"
#
standard_testfile nsthrexec.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -34,16 +34,16 @@ set lib_opts debug
set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
|| [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
if { [gdb_compile_pthreads $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
if {[mi_clean_restart $::testfile]} {
return
@@ -58,11 +58,11 @@ proc check_mi_thread_command_set {} {
#
standard_testfile pthreads.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -23,11 +23,11 @@ set MIFLAGS "-i=mi"
standard_testfile
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -17,11 +17,11 @@ require supports_process_record
standard_testfile basics.c
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested "failed to compile"
- return -1
+ return
}
load_lib mi-support.exp
mi_clean_restart $::testfile
@@ -33,11 +33,11 @@ if {[mi_clean_restart $::testfile]} {
return
}
if {![mi_runto stop_frame]} {
perror "Failed to stop in stop_frame"
- return -1
+ return
}
mi_gdb_test "111-stack-list-frames" \
"111\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"stop_frame\",.*\},frame=\{level=\"1\",addr=\"$hex\",func=\"first_frame\",.*\},frame=\{level=\"2\",addr=\"$hex\",func=\"main\",.*\}\\\]" \
"stack frame listing"
@@ -21,17 +21,17 @@ set MIFLAGS "-i=mi"
standard_testfile
set opts {debug}
if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} {
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
mi_create_breakpoint do_nothing \
"breakpoint at do_nothing" \
-number 2 -func do_nothing
@@ -28,11 +28,11 @@ set MIFLAGS "-i=mi"
standard_testfile mi-sym-info-1.c mi-sym-info-2.c
if {[build_executable "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] {debug}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
# Don't run to main to avoid increasing the search scope to include
@@ -30,11 +30,11 @@ set is_remote \
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] } {
- return -1
+ return
}
foreach_mi_ui_mode mode {
if {$mode eq "separate"} {
set start_ops "separate-mi-tty"
@@ -24,11 +24,11 @@ if {[mi_clean_restart]} {
}
standard_testfile
if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
- return -1
+ return
}
proc make_loc {num} {
return [mi_make_breakpoint_loc -thread "1" -number "$::decimal\\.$num"]
}
@@ -19,11 +19,11 @@ load_lib mi-support.exp
set MIFLAGS "-i=mi"
standard_testfile
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
# This tests the resolution of PR 20039.
#
# With a multi-threaded inferior and with MI/all-stop, it was not possible
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi"
standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -23,11 +23,11 @@ require allow_fortran_tests
standard_testfile array.f90
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug f90}] != ""} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -1199,10 +1199,10 @@ mi_varobj_update * {psnp->ptrs.0.next.next.long_ptr} \
"update all vars psnp->next->next->long_ptr (and 2.long_ptr) changed"
mi_prepare_inline_tests $srcfile
if { [mi_run_inline_test child_deletion] < 0 } {
- return -1
+ return
}
mi_gdb_exit
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi"
standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -18,17 +18,17 @@ set MIFLAGS "-i=mi"
standard_testfile .c
set opts {debug}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
# Test creating a register-based variable. We pick
# register SP since it is a pointer to data. This checks
# for a regression when creating MI variables from pointers
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi"
standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -25,11 +25,11 @@ require allow_shlib_tests
standard_testfile .c -lib.c
set shlib_path [standard_output_file ${testfile}-lib.so]
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $shlib_path {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set shlib_path_target [gdb_download_shlib $shlib_path]
set opts {}
@@ -37,11 +37,11 @@ lappend opts shlib_load
lappend opts debug
lappend opts additional_flags=-DSHLIB_PATH=[quote_for_host $shlib_path_target]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc do_test { separate_debuginfo } {
if { [mi_clean_restart] } {
unsupported "failed to start GDB"
@@ -25,25 +25,25 @@ set MIFLAGS "-i=mi"
standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Just change the output binary.
set binfile_bis [standard_output_file mi-var-invalidate_bis]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set testfile2 "basics"
set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -21,11 +21,11 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -20,11 +20,11 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
set opts {debug c++}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -31,11 +31,11 @@ proc mi_nonstop_resume { command test } {
# Start here
#
standard_testfile watch-nonstop.c
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
mi_clean_restart $::testfile
@@ -26,11 +26,11 @@ if {[info exists COMPILE]} {
} else {
require is_x86_64_m64_target
}
if {[build_executable ${testfile}.exp ${binfile} ${srcfile} $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -20,11 +20,11 @@ set MIFLAGS "-i=mi2"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -24,11 +24,11 @@ set MIFLAGS "-i=mi2"
standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -29,11 +29,11 @@ load_lib mi-support.exp
set MIFLAGS "-i=mi"
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Helper proc to create a breakpoint location regexp. NUM is the
# regexp to match the number field of this location.
proc make_bp_loc { num } {
@@ -27,11 +27,11 @@ load_lib mi-support.exp
standard_testfile
if {[build_executable $testfile.exp $testfile ${srcfile} "debug"] == -1} {
untested "failed to compile"
- return -1
+ return
}
# The test driver. SYNC_COMMAND specifies which command is used to
# synchronously start the program running.
@@ -29,11 +29,11 @@ set opts {}
lappend opts debug
lappend opts c++
lappend opts additional_flags=-std=c++11
if {[build_executable "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
@@ -43,11 +43,11 @@ require !use_gdb_stub
require allow_multi_inferior_tests
set compile_options "debug pthreads"
if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
untested "failed to compile"
- return -1
+ return
}
set main_break_line [gdb_get_line_number "main break line"]
set thread_loop_line [gdb_get_line_number "thread loop line"]
set thread_caller_line [gdb_get_line_number "thread caller line"]