aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-01-21 16:09:07 -0300
committerLuis Machado <luis.machado@linaro.org>2021-01-21 17:18:23 -0300
commitcd211c75cb6c1ce751f1d00ba75682837e8c640f (patch)
tree7cf39e447577dd2ce9dbcc63a269c078b76602bf /gdb/testsuite/lib
parentd5d24e12f97e1db527a704d0f57e678d3552b55e (diff)
downloadgdb-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.exp3
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