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 /gdb/testsuite/lib | |
parent | d5d24e12f97e1db527a704d0f57e678d3552b55e (diff) | |
download | gdb-cd211c75cb6c1ce751f1d00ba75682837e8c640f.zip gdb-cd211c75cb6c1ce751f1d00ba75682837e8c640f.tar.gz 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.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdbserver-support.exp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |