diff options
author | Tom de Vries <tdevries@suse.de> | 2020-02-10 13:22:09 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-02-10 13:22:09 +0100 |
commit | 44f6938ead9cfadecd705dbd30fa177fac1330ad (patch) | |
tree | ce326fba7511b098cb375aa3a9e18bc3fdd51a5c /gdb | |
parent | 5f0e2eb79e6b771779eab6f5a8cf33c5c889ca85 (diff) | |
download | gdb-44f6938ead9cfadecd705dbd30fa177fac1330ad.zip gdb-44f6938ead9cfadecd705dbd30fa177fac1330ad.tar.gz gdb-44f6938ead9cfadecd705dbd30fa177fac1330ad.tar.bz2 |
[gdb/testsuite] Skip multi-target.exp without gdbserver
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.multi/multi-target.exp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ef43995..20c39b1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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 diff --git a/gdb/testsuite/gdb.multi/multi-target.exp b/gdb/testsuite/gdb.multi/multi-target.exp index 3588eb4..6c727b5 100644 --- a/gdb/testsuite/gdb.multi/multi-target.exp +++ b/gdb/testsuite/gdb.multi/multi-target.exp @@ -17,6 +17,10 @@ load_lib gdbserver-support.exp +if { [skip_gdbserver_tests] } { + return 0 +} + standard_testfile # The plain remote target can't do multiple inferiors. |