This changes some tests to use "require !skip_gdbserver_tests".
load_lib gdbserver-support.exp
require !skip_btrace_tests
-if { [skip_gdbserver_tests] } {
- unsupported "target does not support gdbserver"
- return -1
-}
+require !skip_gdbserver_tests
standard_testfile
if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
load_lib mi-support.exp
set MIFLAGS "-i=mi"
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
standard_testfile basics.c
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
require can_spawn_for_attach
standard_testfile
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
standard_testfile normal.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
# Because we're relying on being able to change our CWD before
# executing gdbserver, we just run if we're not testing with a remote
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
require can_spawn_for_attach
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if { [prepare_for_testing "failed to prepare" ${binfile} "${srcfile}" \
{debug pthreads}] } {
load_lib gdbserver-support.exp
load_lib prelink-support.exp
-if {[skip_gdbserver_tests]} {
- return
-}
+require !skip_gdbserver_tests
standard_testfile
set executable ${testfile}
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
return -1
load_lib gdbserver-support.exp
-if {[skip_gdbserver_tests]} {
- return
-}
+require !skip_gdbserver_tests
standard_testfile
load_lib gdbserver-support.exp
-if { [skip_gdbserver_tests] } {
- verbose "skipping gdbserver tests"
- return -1
-}
+require !skip_gdbserver_tests
standard_testfile
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
require can_spawn_for_attach
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
standard_testfile wrapper.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return -1
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
standard_testfile
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
standard_testfile
set unresolvable_thread_db_path "/foo/bar"
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
return -1
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
set gdbserver [find_gdbserver]
if { $gdbserver == "" } {
load_lib gdbserver-support.exp
-if { [skip_gdbserver_tests] } {
- verbose "skipping gdbserver tests"
- return -1
-}
+require !skip_gdbserver_tests
if [target_info exists gdb,nointerrupts] {
verbose "Skipping reconnect-ctrl-c.exp because of nointerrupts."
load_lib gdbserver-support.exp
-if {[skip_gdbserver_tests]} {
- return
-}
+require !skip_gdbserver_tests
standard_testfile normal.c
standard_testfile normal.c
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
# We want to have control over where we start gdbserver.
if { [is_remote target] } {
standard_testfile multi-ui-errors.c
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
# Gdb needs to be running for skip_python_tests, but exit once we're done,
# we'll start a custom gdb after this.
standard_testfile
-if {[skip_gdbserver_tests]} {
- return 0
-}
+require !skip_gdbserver_tests
if { [build_executable "failed to prepare" ${testfile}] } {
return -1
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return -1
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
set gdbserver [find_gdbserver]
if { $gdbserver == "" } {
standard_testfile server.c
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
load_lib gdbserver-support.exp
-if { [skip_gdbserver_tests] } {
- verbose "skipping gdbserver tests"
- return -1
-}
+require !skip_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1 } {
load_lib gdbserver-support.exp
-if { [skip_gdbserver_tests] } {
- verbose "skipping gdbserver tests"
- return -1
-}
+require !skip_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile] == -1 } {
load_lib gdbserver-support.exp
-if { [skip_gdbserver_tests] } {
- verbose "skipping gdbserver tests"
- return -1
-}
+require !skip_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile "additional_flags=--no-builtin"] == -1} {
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if { [build_executable "failed to prepare" $::testfile $::srcfile \
{debug}] } {
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
global server_spawn_id
standard_testfile
-if { [skip_gdbserver_tests] } {
- return 0
-}
+require !skip_gdbserver_tests
if { [istarget *-*-mingw*]
|| [istarget *-*-cygwin*] } {