[gdb/testsuite] Skip multi-target.exp without gdbserver
authorTom de Vries <tdevries@suse.de>
Mon, 10 Feb 2020 12:22:09 +0000 (13:22 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Feb 2020 12:22:09 +0000 (13:22 +0100)
Pre-commit 919adfe840 "Move gdbserver to top level", if we build gdb with
--disable-gdbserver, and run test-case gdb.multi/multi-target.exp, we run
into:
...
(gdb) PASS: gdb.multi/multi-target.exp: continue: non-stop=off: set remote-exec file in inferior 2
spawn of  --once --multi localhost:2346 failed
ERROR: tcl error sourcing /data/gdb_versions/devel/src/gdb/testsuite/gdb.multi/multi-target.exp.
ERROR: Timeout waiting for gdbserver response.
...

Fix this by using skip_gdbserver_tests in multi-target.exp.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-02-10  Tom de Vries  <tdevries@suse.de>

* gdb.multi/multi-target.exp: Skip if skip_gdbserver_tests.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/multi-target.exp

index ef439953052791695c8ccdd0b8fd7d295590e2bc..20c39b120030cc83bd42cf743df55a8f9e0edfd1 100644 (file)
@@ -1,3 +1,7 @@
+2020-02-10  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.multi/multi-target.exp: Skip if skip_gdbserver_tests.
+
 2020-02-10  Maciej W. Rozycki  <macro@wdc.com>
 
        * gdb.base/step-over-no-symbols.exp: Verify that $before_addr
index 3588eb4d76e95c5c8aed1ca1c7c3e11abe88672a..6c727b5e3bdbb5767925232808bf8ca0e39bbee4 100644 (file)
 
 load_lib gdbserver-support.exp
 
+if { [skip_gdbserver_tests] } {
+    return 0
+}
+
 standard_testfile
 
 # The plain remote target can't do multiple inferiors.