From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 46847393C887 for ; Tue, 12 May 2020 08:54:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 46847393C887 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tdevries@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 22C95ABC7 for ; Tue, 12 May 2020 08:54:09 +0000 (UTC) Date: Tue, 12 May 2020 10:54:04 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix duplicate test-names in gdb.fortran Message-ID: <20200512085403.GA29715@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-Spam-Status: No, score=-19.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Tue, 12 May 2020 08:54:08 -0000 Hi, In gdb.fortran we have: ... DUPLICATE: gdb.fortran/complex.exp: whatis $ DUPLICATE: gdb.fortran/complex.exp: whatis $ DUPLICATE: gdb.fortran/complex.exp: whatis $ DUPLICATE: gdb.fortran/complex.exp: whatis $ ... Fix this by using with_test_prefix. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix duplicate test-names in gdb.fortran gdb/testsuite/ChangeLog: 2020-05-12 Tom de Vries * gdb.fortran/complex.exp: Use with_test_prefix. --- gdb/testsuite/gdb.fortran/complex.exp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/gdb.fortran/complex.exp b/gdb/testsuite/gdb.fortran/complex.exp index a88e553e58..f1e754e163 100644 --- a/gdb/testsuite/gdb.fortran/complex.exp +++ b/gdb/testsuite/gdb.fortran/complex.exp @@ -38,21 +38,29 @@ gdb_test "print c16" " = \\(-874,19\\)" gdb_test "whatis c" "type = complex\\(kind=4\\)" gdb_test "print \$_creal (c)" " = 1000" -gdb_test "whatis \$" " = real" +with_test_prefix "c" { + gdb_test "whatis \$" " = real" +} gdb_test "whatis c4" "type = complex\\(kind=4\\)" gdb_test "print \$_creal (c4)" " = 1000" -gdb_test "whatis \$" " = real" - +with_test_prefix "c4" { + gdb_test "whatis \$" " = real" +} gdb_test "whatis c8" "type = complex\\(kind=8\\)" gdb_test "print \$_creal (c8)" " = 321" -gdb_test "whatis \$" " = real\\*8" - +with_test_prefix "c8" { + gdb_test "whatis \$" " = real\\*8" +} gdb_test "whatis dc" "type = complex\\(kind=8\\)" gdb_test "print \$_creal (dc)" " = 321" -gdb_test "whatis \$" " = real\\*8" +with_test_prefix "dc" { + gdb_test "whatis \$" " = real\\*8" +} gdb_test "whatis c16" "type = complex\\(kind=16\\)" gdb_test "print \$_creal (c16)" " = -874" -gdb_test "whatis \$" " = real\\*16" +with_test_prefix "c16" { + gdb_test "whatis \$" " = real\\*16" +}