From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VLu0N2h0I2FBKgAAWB0awg (envelope-from ) for ; Mon, 23 Aug 2021 06:11:52 -0400 Received: by simark.ca (Postfix, from userid 112) id D271E1EE18; Mon, 23 Aug 2021 06:11:52 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 37BF11E813 for ; Mon, 23 Aug 2021 06:11:52 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C997C385842C for ; Mon, 23 Aug 2021 10:11:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C997C385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629713511; bh=3EBM0KH3RsLnvts0ElBgCPbUlPFh+vDX59ufCPxIFxE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Cy3852Pr6JB3bon2Um3eV773H6o8UKrCkIQdW04NzBflLtDAhqKF51hmmMq2/IWxO ShIJDIv1Wq+bx9QdsUnwHVcoAAEYZIg0XcgmY+BIw7UPrMTHCciMm3qxmK/t3Up5Ty wgWBKVxuytT3jTi0jnk2MsQ8FVhPRs1KQcGAVvXk= Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id C53543858417 for ; Mon, 23 Aug 2021 10:10:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C53543858417 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E1A271FF9A for ; Mon, 23 Aug 2021 10:10:32 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id CF8D413A12 for ; Mon, 23 Aug 2021 10:10:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id UZ2aMRh0I2EBegAAGKfGzw (envelope-from ) for ; Mon, 23 Aug 2021 10:10:32 +0000 Date: Mon, 23 Aug 2021 12:10:31 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix dw2-ranges-psym.exp with -readnow Message-ID: <20210823101029.GA4384@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: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, When running test-case gdb.dwarf2/dw2-ranges-psym.exp with target board -readnow, I run into: ... (gdb) file dw2-ranges-psym^M Reading symbols from dw2-ranges-psym...^M Expanding full symbols from dw2-ranges-psym...^M (gdb) set complaints 0^M (gdb) FAIL: gdb.dwarf2/dw2-ranges-psym.exp: No complaints ... The problem is that the regexp expects a gdb prompt immediately after the "Reading symbols" line. Fix this by updating the regexp. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix dw2-ranges-psym.exp with -readnow gdb/testsuite/ChangeLog: 2021-08-22 Tom de Vries * lib/gdb.exp (gdb_load_no_complaints): Update regexp to allow "Expanding full symbols" Line. --- gdb/testsuite/lib/gdb.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 2f95989440a..093392709b4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -5328,7 +5328,11 @@ proc gdb_load_no_complaints { arg } { } # Verify that there were no complaints. - set re "^Reading symbols from \[^\r\n\]*\r\n$gdb_prompt $" + set re \ + [multi_line \ + "^Reading symbols from \[^\r\n\]*" \ + "(Expanding full symbols from \[^\r\n\]*" \ + ")?$gdb_prompt $"] gdb_assert {[regexp $re $gdb_file_cmd_msg]} "No complaints" }