From patchwork Wed Mar 1 03:23:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weimin Pan X-Patchwork-Id: 19413 Received: (qmail 91533 invoked by alias); 1 Mar 2017 03:23:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 91523 invoked by uid 89); 1 Mar 2017 03:23:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=pan, Pan, 4417, instructed X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Mar 2017 03:23:37 +0000 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v213NaBG015069 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Mar 2017 03:23:36 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id v213NZpS008062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Mar 2017 03:23:36 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v213NZqr025033 for ; Wed, 1 Mar 2017 03:23:35 GMT Received: from wmpan.us.oracle.com (/10.147.27.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 28 Feb 2017 19:23:35 -0800 From: Weimin Pan To: gdb-patches@sourceware.org Subject: [PATCH] gdb.base/siginfo-thread.exp: Increase timeout for 'gcore' command Date: Tue, 28 Feb 2017 21:23:23 -0600 Message-Id: <1488338603-107524-1-git-send-email-weimin.pan@oracle.com> 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/testsuite/ChangeLog: 2017-02-22 Weimin Pan * 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" + } } }