diff options
author | Luis Machado <luis.machado@linaro.org> | 2021-01-21 16:09:07 -0300 |
---|---|---|
committer | Luis Machado <luis.machado@linaro.org> | 2021-01-21 17:18:23 -0300 |
commit | cd211c75cb6c1ce751f1d00ba75682837e8c640f (patch) | |
tree | 7cf39e447577dd2ce9dbcc63a269c078b76602bf | |
parent | d5d24e12f97e1db527a704d0f57e678d3552b55e (diff) | |
download | fsf-binutils-gdb-cd211c75cb6c1ce751f1d00ba75682837e8c640f.zip fsf-binutils-gdb-cd211c75cb6c1ce751f1d00ba75682837e8c640f.tar.gz fsf-binutils-gdb-cd211c75cb6c1ce751f1d00ba75682837e8c640f.tar.bz2 |
Handle additional connection error
On Ubuntu 18.04/20.04 I was running into annoying timeouts for
gdb.server/server-connect.exp. Those were caused by the ipv6 tests, because
they were running into the "Cannot assign requested address" error, originated
from the connect syscall.
Improve this by handling this additional error in the testsuite library.
It still fails for me, but at least it fails pretty quickly and doesn't make the
testsuite run take longer.
gdb/testsuite/ChangeLog:
2021-01-21 Luis Machado <luis.machado@linaro.org>
* lib/gdbserver-support.exp (gdb_target_cmd_ext): Handle a new error
message.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdbserver-support.exp | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c2d96c4..1d25177 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-01-21 Luis Machado <luis.machado@linaro.org> + + * lib/gdbserver-support.exp (gdb_target_cmd_ext): Handle a new error + message. + 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> * lib/tuiterm.exp (_log, _log_cur): New, use throughout. diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 0cec39d..7b48b5a 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -64,6 +64,9 @@ proc gdb_target_cmd_ext { targetname serialport {additional_text ""} } { -re "Couldn't establish connection to remote.*$gdb_prompt $" { verbose "Connection failed" } + -re "Cannot assign requested address.*$gdb_prompt $" { + verbose "Could not assign requested address" + } -re "Non-stop mode requested, but remote does not support non-stop.*$gdb_prompt $" { verbose "remote does not support non-stop" return 1 |