[PATCH] GDB/testsuite: Extend the time gdbserver is waited for

Pedro Alves palves@redhat.com
Tue Jul 29 13:41:00 GMT 2014


On 07/28/2014 08:34 PM, Maciej W. Rozycki wrote:

> gdb-test-gdbserver-start-timeout.diff
> Index: gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdbserver-support.exp
> ===================================================================
> --- gdb-fsf-trunk-quilt.orig/gdb/testsuite/lib/gdbserver-support.exp	2014-05-13 02:52:11.347706187 +0100
> +++ gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdbserver-support.exp	2014-05-30 01:45:51.658977074 +0100
> @@ -275,6 +275,7 @@ proc gdbserver_start { options arguments
>  	# Wait for the server to open its TCP socket, so that GDB can connect.
>  	expect {
>  	    -i $server_spawn_id
> +	    -timeout 120
>  	    -notransfer
>  	    -re "Listening on" { }
>  	    -re "Can't bind address: Address already in use\\.\r\n" {
> 

OK.

Wouldn't it be good to add a 'timeout {...}' case that emits a
warning or some such?

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list