From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114327 invoked by alias); 1 Aug 2019 08:57:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 114319 invoked by uid 89); 1 Aug 2019 08:57:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Aug 2019 08:57:16 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 96F5FB61C for ; Thu, 1 Aug 2019 08:57:14 +0000 (UTC) Date: Thu, 01 Aug 2019 08:57:00 -0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix gdb.base/break-interp.exp timeout with check-read1 Message-ID: <20190801085711.GA29973@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00002.txt.bz2 Hi, With gdb.base/break-interp.exp and check-read1, we run get: ... FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugNO: \ BINprelinkNOdebugNOpieNO: symbol-less: info files (timeout) FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugNO: \ BINprelinkNOdebugNOpieYES: symbol-less: info files (timeout) FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugIN: \ BINprelinkNOdebugNOpieNO: symbol-less: info files (timeout) FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugIN: \ BINprelinkNOdebugNOpieYES: symbol-less: info files (timeout) ... Fix this by calling exp_continue after each "info files" line. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix gdb.base/break-interp.exp timeout with check-read1 gdb/testsuite/ChangeLog: 2019-07-31 Tom de Vries PR testsuite/24863 * gdb.base/break-interp.exp: Use exp_continue after each "info files" line. --- gdb/testsuite/gdb.base/break-interp.exp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index 51e31f6503..d6da653529 100644 --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -451,6 +451,10 @@ proc test_ld {file ifmain trynosym displacement} { # to slow processing of wildcard capturing long output set test "info files" set entrynohex "" + set info_line [join [list \ + "\r\n" "\[\t\]" "0x\[0-9af\]+" " - " \ + "0x\[0-9af\]+" " @ " "0x\[0-9af\]+" \ + " is " "\[^\r\n\]+"] ""] gdb_test_multiple $test $test { -re "\r\n\[\t \]*Entry point:\[\t \]*0x(\[0-9a-f\]+)\r\n" { set entrynohex $expect_out(1,string) @@ -458,6 +462,10 @@ proc test_ld {file ifmain trynosym displacement} { -re "\r\n$gdb_prompt $" { pass $test } + -re $info_line { + # Avoid timeout with check-read1 + exp_continue + } } } }