public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PING][PATCH] gdb.base/siginfo-thread.exp: Increase timeout for 'gcore' command
       [not found] <58B45D17.7090109@oracle.com>
@ 2017-03-16  1:59 ` Wei-min Pan
  0 siblings, 0 replies; only message in thread
From: Wei-min Pan @ 2017-03-16  1:59 UTC (permalink / raw)
  To: gdb-patches

Wei-min Pan wrote:
> The following failed lines from running test case siginfo-thread:
>
> FAIL: gdb.base/siginfo-thread.exp: save a core file (timeout)
> FAIL: gdb.base/siginfo-thread.exp: extract si_addr
> FAIL: gdb.base/siginfo-thread.exp: p ssi_addr
>
> indicate the testsuite timed out when gdb was instructed to write the
> core file. The patch below fixes the problem by simply increasing the
> timeout by a factor of 2 to give gdb more time to generate core files.
>
> Tested in sparc64-linux-gnu. No regressions.
>
>        * gdb.base/siginfo-thread.exp: Increase timeout by a factor of 2
>        for the 'gcore command.
> ---
> gdb/testsuite/gdb.base/siginfo-thread.exp |   20 +++++++++++---------
> 1 files changed, 11 insertions(+), 9 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.base/siginfo-thread.exp 
> b/gdb/testsuite/gdb.base/
> siginfo-thread.exp
> index 825a0d2..872780b 100644
> --- a/gdb/testsuite/gdb.base/siginfo-thread.exp
> +++ b/gdb/testsuite/gdb.base/siginfo-thread.exp
> @@ -44,15 +44,17 @@ if { ![runto_main] } then {
> gdb_test "continue" "Thread .* received signal SIGSEGV.*" "continue to 
> signal"
>
> # Try to generate a core file, for a later test.
> -set gcorefile [standard_output_file $testfile.gcore]
> -set gcore_created [gdb_gcore_cmd $gcorefile "save a core file"]
> -
> -set ssi_addr ""
> -set test "extract si_addr"
> -gdb_test_multiple "p \$_siginfo" "$test" {
> -    -re "si_addr = ($hex).*$gdb_prompt $" {
> -       set ssi_addr $expect_out(1,string)
> -       pass "$test"
> +with_timeout_factor 2 {
> +    set gcorefile [standard_output_file $testfile.gcore]
> +    set gcore_created [gdb_gcore_cmd $gcorefile "save a core file"]
> +
> +    set ssi_addr ""
> +    set test "extract si_addr"
> +    gdb_test_multiple "p \$_siginfo" "$test" {
> +       -re "si_addr = ($hex).*$gdb_prompt $" {
> +           set ssi_addr $expect_out(1,string)
> +           pass "$test"
> +       }
>     }
> }
>
> -- 
> 1.7.1
>
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-16  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <58B45D17.7090109@oracle.com>
2017-03-16  1:59 ` [PING][PATCH] gdb.base/siginfo-thread.exp: Increase timeout for 'gcore' command Wei-min Pan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).