From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WIp4HRUlv2ByWQAAWB0awg (envelope-from ) for ; Tue, 08 Jun 2021 04:06:45 -0400 Received: by simark.ca (Postfix, from userid 112) id 76B5A1F163; Tue, 8 Jun 2021 04:06:45 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C94461E01F for ; Tue, 8 Jun 2021 04:06:44 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 965DE394740B for ; Tue, 8 Jun 2021 08:06:44 +0000 (GMT) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 5636938654A3 for ; Tue, 8 Jun 2021 08:06:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5636938654A3 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6F402219BE for ; Tue, 8 Jun 2021 08:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623139591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=uGRTQpzUn+xwhVG0I/5XQ70h4T2PkUuigP00R4YGRjs=; b=xDkYZW0058sSRUvoWSr0zZ91Bi+9sxNO+S8lMwKSLHuo8ITqC7D6yUP7CyKkaLwE8I83dR ZqTzBlzb5Okjx4qQh3g3NppCd8JCDAzsJiUV9Pg4Jt8DrtBUp2p50EKWtMJjL/kiW2EwwZ 2Cf4umzUaqck/8hGXcbFVeInH3JD5fM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623139591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=uGRTQpzUn+xwhVG0I/5XQ70h4T2PkUuigP00R4YGRjs=; b=NqOBridWNMcU6r0fAG2Rso4QJ9IoO7cb/o4XaZPGusJTtruBlILAUrTpwr/XHmKqUeh6Bx Rv0SnjKV6zJn/RDg== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 3664A118DD for ; Tue, 8 Jun 2021 08:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623139591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=uGRTQpzUn+xwhVG0I/5XQ70h4T2PkUuigP00R4YGRjs=; b=xDkYZW0058sSRUvoWSr0zZ91Bi+9sxNO+S8lMwKSLHuo8ITqC7D6yUP7CyKkaLwE8I83dR ZqTzBlzb5Okjx4qQh3g3NppCd8JCDAzsJiUV9Pg4Jt8DrtBUp2p50EKWtMJjL/kiW2EwwZ 2Cf4umzUaqck/8hGXcbFVeInH3JD5fM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623139591; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=uGRTQpzUn+xwhVG0I/5XQ70h4T2PkUuigP00R4YGRjs=; b=NqOBridWNMcU6r0fAG2Rso4QJ9IoO7cb/o4XaZPGusJTtruBlILAUrTpwr/XHmKqUeh6Bx Rv0SnjKV6zJn/RDg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id CYU+DAclv2CNLwAALh3uQQ (envelope-from ) for ; Tue, 08 Jun 2021 08:06:31 +0000 Date: Tue, 8 Jun 2021 10:06:29 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix gdb.threads/multi-create-ns-info-thr.exp Message-ID: <20210608080628.GA14656@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-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, With a testsuite setup modified to make expect wait a little bit longer for gdb output (see PR27957), I reliably run into: ... PASS: gdb.threads/multi-create-ns-info-thr.exp: continue to breakpoint 1 FAIL: gdb.threads/multi-create-ns-info-thr.exp: continue to breakpoint 2 \ (timeout) ... This is due to this regexp: ... -re "Breakpoint $decimal,.*$srcfile:$bp_location1" { ... consuming several lines using the ".*" part, while it's intended to match one line looking like this: ... Thread 1 "multi-create-ns" hit Breakpoint 2, create_function () \ at multi-create.c:45^M ... Fix this by limiting the regexp to one line. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix gdb.threads/multi-create-ns-info-thr.exp gdb/testsuite/ChangeLog: 2021-06-08 Tom de Vries * gdb.threads/multi-create-ns-info-thr.exp: Limit breakpoint regexp to one line. --- gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp b/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp index 2fb52238798..1b32637e877 100644 --- a/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp +++ b/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp @@ -45,7 +45,7 @@ gdb_test_multiple $test $test { for {set i 0} {$i < 32} {incr i} { set test "continue to breakpoint $i" gdb_test_multiple "" $test { - -re "Breakpoint $decimal,.*$srcfile:$bp_location1" { + -re "Breakpoint $decimal,\[^\r\n\]*$srcfile:$bp_location1" { pass $test } }