From: Luis Machado Date: Thu, 21 Jan 2021 19:09:07 +0000 (-0300) Subject: Handle additional connection error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd211c75cb6c1ce751f1d00ba75682837e8c640f;p=binutils-gdb.git 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 * lib/gdbserver-support.exp (gdb_target_cmd_ext): Handle a new error message. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c2d96c4ff38..1d25177408c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-01-21 Luis Machado + + * lib/gdbserver-support.exp (gdb_target_cmd_ext): Handle a new error + message. + 2021-01-21 Simon Marchi * 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 0cec39dbefc..7b48b5a8399 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