@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
untested "failed to compile"
- return -1
+ return
}
# This proc restarts GDB, makes the inferior reach the desired spot - marked
# by a comment in the .c file - and turns on the pretty printer for testing.
# Starting with a new GDB is important because the test may crash GDB. The
@@ -18,11 +18,11 @@
load_lib gdb-python.exp
require allow_python_tests
standard_testfile py-arch.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -18,11 +18,11 @@
load_lib gdb-python.exp
require allow_python_tests
standard_testfile py-arch.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -15,11 +15,11 @@
load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -44,11 +44,11 @@ set remote_python_file [gdb_remote_download host \
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}-f2.o-gdb.py]
# Build the main test executable and start GDB.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -30,19 +30,19 @@ set python_autoload_file "${srcdir}/${subdir}/${libname}.so-gdb.py"
set binfile_lib [standard_output_file "${libname}.so"]
# Compile library.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \
{debug c++}] != "" } {
- return -1
+ return
}
# Compile main program.
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} \
${binfile} \
executable \
[list debug c++ shlib=$binfile_lib]] != "" } {
- return -1
+ return
}
clean_restart
# Make the -gdb.py script available to gdb, it is automatically loaded by
@@ -21,15 +21,15 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -18,19 +18,19 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {c++ debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
clean_restart $testfile
}
if {![runto_main]} {
- return -1
+ return
}
# Build a regexp string that represents the __repr__ of a
# gdb.BreakpointLocation object. Accepts arguments -enabled, -address,
# -source, -line, and -func.
@@ -78,11 +78,11 @@ gdb_test "python print(gdb.breakpoints()\[1\].locations\[0\])" \
-line "$expected_line_a" -func ".*"] \
"check repr of disabled breakpoint location"
gdb_continue_to_breakpoint "" ".*25.*"
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "add"
# Disable "add" owner breakpoint and verify all locations still are enabled.
gdb_test "python gdb.breakpoints()\[1\].enabled = False" "" "Disable add owner breakpoint."
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
clean_restart "${testfile}"
if {![runto_main]} {
return
@@ -31,11 +31,11 @@ require allow_python_tests
standard_testfile
set options {debug c++}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${options}] } {
- return -1
+ return
}
set past_throw_catch_line [gdb_get_line_number "Past throw-catch."]
# Build a regexp string that can match against the repr of a gdb.Breakpoint
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -22,11 +22,11 @@ load_lib gdb-python.exp
require !use_gdb_stub allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
gdb_test_no_output "source $pyfile" "source the script"
@@ -26,11 +26,11 @@ require !use_gdb_stub
require allow_python_tests allow_gdbserver_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set bp_line [gdb_get_line_number "break-here"]
gdb_breakpoint $bp_line
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -20,11 +20,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile .c .py
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if { ![runto_main] } {
return 0
}
@@ -28,11 +28,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile py-connection.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return
}
@@ -23,11 +23,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -22,20 +22,20 @@ require allow_shlib_tests allow_python_tests
standard_testfile .c
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug shlib_load}] != ""} {
untested "failed to compile"
- return -1
+ return
}
set testfile2 py-events-shlib
set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}.so]
if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \
${binfile2} {debug}] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
set binfile2_dlopen [gdb_download_shlib $binfile2]
clean_restart $testfile
@@ -26,11 +26,11 @@ standard_testfile
set exec_opts [list debug shlib=$lib_sl]
if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
clean_restart ${testfile}
@@ -14,21 +14,21 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if {[gdb_protocol_is_remote]} {
# RuntimeError: Could not find event thread
kfail "python/12966" "Signal Thread 3"
- return -1
+ return
}
load_lib gdb-python.exp
require allow_python_tests
standard_testfile py-evthreads.c
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-events.py]
gdb_test_no_output "source ${pyfile}" "load python file"
@@ -18,11 +18,11 @@ require support_displaced_stepping allow_python_tests
load_lib gdb-python.exp
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
append GDBFLAGS " -ex \"set non-stop on\""
clean_restart $testfile
@@ -24,16 +24,16 @@ set binfile1 [standard_output_file $testfile1]
set testfile2 $testfile-b
set binfile2 [standard_output_file $testfile2]
if {[build_executable "failed to prepare first executable" \
$binfile1 $srcfile]} {
- return -1
+ return
}
if {[build_executable "failed to prepare second executable" \
$binfile2 $srcfile]} {
- return -1
+ return
}
set binfile1 [gdb_remote_download host $binfile1]
set binfile2 [gdb_remote_download host $binfile2]
@@ -19,11 +19,11 @@
require allow_cplus_tests allow_python_tests
standard_testfile py-explore.cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set int_ptr_ref_desc "The value of 'int_ptr_ref' is of type 'int_ptr' which is a typedef of type 'int \\*'.*\'int_ptr_ref' is a pointer to a value of type 'int'.*"
set b_desc "The value of 'b' is a struct/class of type 'B' with the following fields:.*\
@@ -16,11 +16,11 @@
standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set SS "struct SimpleStruct"
set SU "union SimpleUnion"
set CS "struct ComplexStruct"
@@ -20,11 +20,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
if {![runto_main]} {
return
}
@@ -29,11 +29,11 @@ standard_testfile
set exec_opts [list debug shlib=$lib_sl]
if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
clean_restart ${testfile}
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -16,15 +16,15 @@
standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -18,11 +18,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# The following tests require execution.
if {![runto_main]} {
@@ -204,11 +204,11 @@ gdb_test "python print(gdb.selected_frame().read_register(bad_object))" \
"test Frame.read_register with bad_type object"
# Compile again without debug info.
gdb_exit
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -22,11 +22,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -22,11 +22,11 @@ standard_testfile amd64-py-framefilter-invalidarg.S
require is_x86_64_m64_target
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile {}] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
gdb_exit
gdb_start
@@ -23,20 +23,20 @@ set MIFLAGS "-i=mi2"
standard_testfile py-framefilter-mi.c
set pyfile py-framefilter.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
mi_runto_main
set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
gdb_exit
gdb_start
@@ -281,11 +281,11 @@ gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt"
# Test with no debuginfo
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile {nodebug}] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
gdb_exit
gdb_start
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } {
- return -1
+ return
}
# Start with a fresh gdb.
save_vars { env(ASAN_OPTIONS) env(TSAN_OPTIONS) } {
# The call to gdb.selected_inferior().read_memory (0, 0xffffffffffffffff)
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
gdb_test_multiline "install new_thread event handler" \
"python" "" \
"seen_a_thread = False" "" \
@@ -19,11 +19,11 @@
load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -21,15 +21,15 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
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"]
gdb_continue_to_breakpoint "break here"
@@ -37,11 +37,11 @@ Dwarf::assemble $asm_file {
}
}
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -25,15 +25,15 @@ if {[info exists COMPILE]} {
} else {
require is_x86_64_m64_target
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_py_test_silent_cmd "python lt = gdb.selected_frame().find_sal().symtab.linetable()" \
"get instruction" 0
@@ -23,11 +23,11 @@ if {[mi_gdb_start]} {
return
}
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
standard_testfile
mi_gdb_test "set python print-stack full" \
@@ -24,11 +24,11 @@ standard_testfile
set pyfile ${testfile}-gdb.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
if {[mi_clean_restart]} {
@@ -23,11 +23,11 @@ if {[mi_gdb_start]} {
return
}
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
standard_testfile
mi_gdb_test "set python print-stack full" \
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile
set pyfile ${testfile}-gdb.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
# Care is taken to put it in the same directory as the binary so that
# gdb will find it.
@@ -24,11 +24,11 @@ require allow_python_tests
# Start here
#
standard_testfile
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
mi_clean_restart $::testfile
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
@@ -21,20 +21,20 @@ set MIFLAGS "-i=mi2"
standard_testfile py-prettyprint.c
set pyfile py-prettyprint.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
return
}
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
mi_runto_main
set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
@@ -340,20 +340,20 @@ mi_gdb_test "-var-update c" \
# C++ MI tests
gdb_exit
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \
executable {debug c++ additional_flags=-DMI}] != "" } {
untested "failed to compile in C++ mode"
- return -1
+ return
}
if {[mi_clean_restart ${::testfile}-cxx]} {
return
}
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
with_test_prefix "varobj fake" {
mi_runto_main
mi_continue_to_line \
@@ -19,18 +19,18 @@ require allow_python_tests
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile} \
{debug build-id}]} {
- return -1
+ return
}
# Remove debug information from BINFILE and place it into
# BINFILE.debug.
if {[gdb_gnu_strip_debug $binfile]} {
unsupported "cannot produce separate debug info files"
- return -1
+ return
}
set remote_python_file \
[gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
@@ -22,15 +22,15 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
gdb_continue_to_breakpoint "run to testing point" ".*Break here.*"
@@ -19,11 +19,11 @@
standard_testfile
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
gdb_exit
gdb_start
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -114,11 +114,11 @@ gdb_test "python print(objfile.username)" "None" \
"objfile.username after objfile is unloaded"
# Now build another copy of the testcase, this time without debug info.
if { [prepare_for_testing "failed to prepare" ${testfile}2 ${srcfile} {nodebug ldflags=-Wl,--strip-debug}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -20,11 +20,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -20,15 +20,15 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto break_function]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -16,15 +16,15 @@
standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto tick_tock]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -23,15 +23,15 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
".*Breakpoint.*"
gdb_test "continue" ".*Breakpoint.*"
@@ -16,15 +16,15 @@
standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto tick_tock]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -21,18 +21,18 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
if {![runto_main ]} {
- return -1
+ return
}
proc prepare_test { } {
global testfile remote_python_file
@@ -27,11 +27,11 @@ set srcfiles [list $srcfile $srcfile2]
if { [build_executable_from_specs \
"failed to prepare" \
$testfile {c++} \
$srcfile {c++ debug} \
$srcfile2 {c++}] == -1 } {
- return -1
+ return
}
# Start with a fresh gdb.
clean_restart $testfile
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "preparing" $testfile $srcfile] == -1} {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-progspace-events.py]
gdb_test_no_output "source ${pyfile}" "load python file"
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
clean_restart
gdb_test "python print (gdb.current_progspace().filename)" "None" \
@@ -22,11 +22,11 @@ load_lib gdb-python.exp
load_lib prompt.exp
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { INTERNAL_GDBFLAGS GDBFLAGS } {
set INTERNAL_GDBFLAGS [string map {"-q" ""} $INTERNAL_GDBFLAGS]
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -21,16 +21,16 @@ require allow_btrace_tests allow_python_tests
standard_testfile
if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug} ] != "" } {
untested "failed to prepare"
- return -1
+ return
}
clean_restart $testfile
if { ![runto_main] } {
- return -1
+ return
}
# set up breakpoints
gdb_breakpoint $srcfile:[gdb_get_line_number "bp1" $srcfile]
gdb_breakpoint $srcfile:[gdb_get_line_number "bp2" $srcfile]
@@ -24,11 +24,11 @@ load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "no or double record" {
gdb_test "python print(gdb.current_recording())" "None"
@@ -24,11 +24,11 @@ load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "no or double record" {
gdb_test "python print(gdb.current_recording())" "None"
@@ -27,11 +27,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
gdb_test "source ${pyfile}" "Python script imported" \
@@ -21,11 +21,11 @@ require allow_cplus_tests allow_python_tests
standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=c++11"}]} {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -25,11 +25,11 @@ load_lib gdbserver-support.exp
standard_testfile
require allow_gdbserver_tests allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected.
gdb_test "disconnect" ".*"
@@ -25,18 +25,18 @@ set libfile "py-shared-sl"
set libsrc ${libfile}.c
set library [standard_output_file ${libfile}.sl]
if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != "" } {
untested "failed to compile shared library"
- return -1
+ return
}
set exec_opts [list debug shlib=${library}]
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
clean_restart $testfile
gdb_load_shlib ${library}
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -47,15 +47,15 @@ Dwarf::assemble $asm_file {
}
}
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_py_test_silent_cmd "python v = gdb.lookup_symbol('the_variable')" \
"get variable" 1
gdb_test "python print(v\[0\].is_artificial)" True \
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile py-symbol.c py-symbol-2.c py-symbol-3.c
set opts { debug additional_flags=-DUSE_TWO_FILES }
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3] $opts]} {
- return -1
+ return
}
set readnow_p [readnow]
# Check that we find all static symbols before the inferior has
@@ -194,11 +194,11 @@ gdb_test "python print (t\[0\].symtab)" "${py_symbol_c}" "get symtab"
lappend opts c++
set testfile $testfile-cxx
set binfile [standard_output_file $testfile]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] $opts] } {
- return -1
+ return
}
gdb_test "python print (gdb.lookup_global_symbol ('(anonymous namespace)::anon') is None)" \
"True" "anon is None"
gdb_test "python print (gdb.lookup_static_symbol ('(anonymous namespace)::anon').value ())" \
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile py-symbol.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -23,11 +23,11 @@ standard_testfile
require can_spawn_for_attach allow_python_tests
load_lib gdb-python.exp
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set test_spawn_id [spawn_wait_for_attach $binfile]
set testpid [spawn_id_get_pid $test_spawn_id]
@@ -20,11 +20,11 @@ require allow_cplus_tests allow_python_tests
standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
{debug c++}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
proc test_template_arg {exefile type} {
@@ -18,11 +18,11 @@ require allow_python_tests
load_lib gdb-python.exp
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
clean_restart $testfile
}
@@ -31,11 +31,11 @@ set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-thread-exited.py]
gdb_test_no_output "source ${pyfile}" "load python file"
gdb_test "test-events" "Event testers registered."
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "In thread" ${testfile}.c]
gdb_breakpoint [gdb_get_line_number "Done" ${testfile}.c]
@@ -24,11 +24,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
runto_main
@@ -19,11 +19,11 @@ load_lib gdb-python.exp
load_lib cp-support.exp
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
@@ -22,11 +22,11 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
debug] } {
- return -1
+ return
}
# The following tests require execution.
if {![runto_main]} {
return 0
@@ -21,17 +21,17 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
if {![runto_main]} {
- return -1
+ return
}
gdb_test "source ${pyfile}" "Python script imported" \
"import python scripts"
@@ -41,11 +41,11 @@ load_lib gdb-python.exp
require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -26,11 +26,11 @@ standard_testfile
# assumptions this test has about its layout.
set flags "additional_flags=-fno-stack-protector"
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug $flags"] } {
- return -1
+ return
}
# This test runs on a specific platform.
require is_x86_64_m64_target
@@ -19,11 +19,11 @@
require allow_cplus_tests allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -798,11 +798,11 @@ proc test_unavailable {} {
}
}
# Build C version of executable. C++ is built later.
if { [build_inferior "${binfile}" "c"] < 0 } {
- return -1
+ return
}
# Start with a fresh gdb.
clean_restart ${::testfile}
@@ -20,11 +20,11 @@ set MIFLAGS "-i=mi"
require allow_python_tests
standard_testfile
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != ""} {
- return -1
+ return
}
mi_clean_restart $::testfile
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
@@ -18,11 +18,11 @@
load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
require allow_python_tests
if {![runto_main]} {
@@ -21,11 +21,11 @@ load_lib gdb-python.exp
require allow_cplus_tests allow_python_tests
standard_testfile py-xmethods.cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
return -1
}
@@ -20,11 +20,11 @@ load_lib gdb-python.exp
standard_testfile python.c python-1.c
if {[build_executable $testfile.exp $testfile \
[list $srcfile $srcfile2] debug] == -1} {
- return -1
+ return
}
clean_restart
set remote_source2_py [gdb_remote_download host \
@@ -30,11 +30,11 @@ standard_testfile
set flags {}
lappend flags debug
lappend_include_file flags $srcdir/lib/attributes.h
if {[build_executable "failed to prepare" ${testfile} ${srcfile} $flags] == -1} {
- return -1
+ return
}
clean_restart
# Copy the Python script to where the tests are being run.
@@ -21,11 +21,11 @@ tuiterm_env
# This test doesn't care about the inferior.
standard_testfile py-arch.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
clean_restart
Term::clean_restart 24 80 $testfile