From patchwork Thu Aug 1 09:00:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 33888 Received: (qmail 94901 invoked by alias); 1 Aug 2019 09:00:50 -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 94893 invoked by uid 89); 1 Aug 2019 09:00:50 -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 09:00:45 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 353EFB640; Thu, 1 Aug 2019 09:00:42 +0000 (UTC) Date: Thu, 1 Aug 2019 11:00:01 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Cc: Pedro Alves Subject: [committed][gdb/testsuite] Fix gdb.threads/fork-plus-threads.exp timeout with check-run1 Message-ID: <20190801090000.GA30211@delia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes Hi, With gdb.threads/fork-plus-threads.exp and check-run1 we get: ... FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: \ inferior 1 exited (timeout) ... Fix this by calling exp_continue for new thread and thread exited messages. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix gdb.threads/fork-plus-threads.exp timeout with check-run1 gdb/testsuite/ChangeLog: 2019-07-31 Tom de Vries PR testsuite/24863 * gdb.threads/fork-plus-threads.exp: Fix check-run1 timeout by calling exp_continue for new thread and thread exited messages. --- gdb/testsuite/gdb.threads/fork-plus-threads.exp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.exp b/gdb/testsuite/gdb.threads/fork-plus-threads.exp index d4d0f18232..340a8df266 100644 --- a/gdb/testsuite/gdb.threads/fork-plus-threads.exp +++ b/gdb/testsuite/gdb.threads/fork-plus-threads.exp @@ -87,6 +87,14 @@ proc do_test { detach_on_fork } { set saw_thread_stopped 1 exp_continue } + -re "Thread \[^\r\n\]+ exited" { + # Avoid timeout with check-read1 + exp_continue + } + -re "New Thread \[^\r\n\]+" { + # Avoid timeout with check-read1 + exp_continue + } -re "Inferior 1 \(\[^\r\n\]+\) exited normally" { pass $test }