From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EJ/3Em7vVWGIXQAAWB0awg (envelope-from ) for ; Thu, 30 Sep 2021 13:10:06 -0400 Received: by simark.ca (Postfix, from userid 112) id 4C0B61EE28; Thu, 30 Sep 2021 13:10:06 -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 AA0FF1EDF7 for ; Thu, 30 Sep 2021 13:10:05 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4F7AB3858001 for ; Thu, 30 Sep 2021 17:10:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F7AB3858001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633021805; bh=Q+ZFEA5aD7eWcfALTrNiAAMPOLthy/Gm22nhygxwz1Q=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=B3f+RQuDhaaLmOI/n0S1swytL9lrFnkoF6/PUZrgrJsudzZabxytsVIppuY0tsxE5 XgSm2T0JA8LFQW51LyCa4mH8t8JTTNPjbofRiL93N6ZegNq/OkYyOFo/kEr1eFsrA1 qtPoG05YEzlG6NObbKzMLMVDgdufS9RDSDTCsJCE= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 71A393858415 for ; Thu, 30 Sep 2021 17:09:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 71A393858415 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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-out1.suse.de (Postfix) with ESMTPS id A788E22656 for ; Thu, 30 Sep 2021 17:09:21 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 95FA013AF5 for ; Thu, 30 Sep 2021 17:09:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 59KZI0HvVWHpWgAAMHmgww (envelope-from ) for ; Thu, 30 Sep 2021 17:09:21 +0000 Date: Thu, 30 Sep 2021 19:09:20 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp Message-ID: <20210930170918.GA25046@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, Fix: ... DUPLICATE: gdb.base/cvexpr.exp: ptype int * restrict ... using with_test_prefix. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp --- gdb/testsuite/gdb.base/cvexpr.exp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.base/cvexpr.exp b/gdb/testsuite/gdb.base/cvexpr.exp index c434c11f45f..33ae1be0322 100644 --- a/gdb/testsuite/gdb.base/cvexpr.exp +++ b/gdb/testsuite/gdb.base/cvexpr.exp @@ -514,7 +514,9 @@ gdb_test "ptype int * restrict" "type = int \\* restrict" # C++ does not have "restrict". gdb_test_no_output "set lang c++" -gdb_test "ptype int * restrict" "A syntax error in expression.*" +with_test_prefix c++ { + gdb_test "ptype int * restrict" "A syntax error in expression.*" -# There is a GCC extension for __restrict__, though. -gdb_test "ptype int * __restrict__" "type = int \\* __restrict__" + # There is a GCC extension for __restrict__, though. + gdb_test "ptype int * __restrict__" "type = int \\* __restrict__" +}