From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 6268F3857004 for ; Tue, 2 Feb 2021 17:02:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6268F3857004 X-ASG-Debug-ID: 1612285326-0c856e6cd58569f0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 43wkVIt1hHfrhxXJ (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 02 Feb 2021 12:02:06 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id 7EE89441B21; Tue, 2 Feb 2021 12:02:06 -0500 (EST) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [pushed] gdb/testsuite: use proc_with_prefix in gdb.base/scope.exp Date: Tue, 2 Feb 2021 12:02:06 -0500 X-ASG-Orig-Subj: [pushed] gdb/testsuite: use proc_with_prefix in gdb.base/scope.exp Message-Id: <20210202170206.568418-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1612285326 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 2604 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.87697 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-21.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, 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, 02 Feb 2021 17:02:09 -0000 Fixes: Running /home/simark/src/binutils-gdb/gdb/testsuite/gdb.base/scope.exp ... DUPLICATE: gdb.base/scope.exp: print 'scope0.c'::filelocal_ro DUPLICATE: gdb.base/scope.exp: print 'scope0.c'::filelocal_ro DUPLICATE: gdb.base/scope.exp: next gdb/testsuite/ChangeLog: * gdb.base/scope.exp: Use proc_with_prefix. Change-Id: Ic40e24a603da6f2a4f8003b74b2ff3040d2b098d --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/scope.exp | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f980bac89aac..f03b2db727bf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-02-02 Simon Marchi + + * gdb.base/scope.exp: Use proc_with_prefix. + 2021-02-02 Simon Marchi * lib/dwarf.exp (rnglists): Add -no-offset-array option to diff --git a/gdb/testsuite/gdb.base/scope.exp b/gdb/testsuite/gdb.base/scope.exp index edf9811ad3b3..51a5ec4d9496 100644 --- a/gdb/testsuite/gdb.base/scope.exp +++ b/gdb/testsuite/gdb.base/scope.exp @@ -33,7 +33,7 @@ if [get_compiler_info] { # running init0(). To prevent cascading of errors, we report the # first one and quit. If all pass, then we print the pass results. -proc test_at_main {} { +proc_with_prefix test_at_main {} { global gdb_prompt global decimal global det_file @@ -95,7 +95,7 @@ proc test_at_main {} { gdb_test "print 'scope1.c'::bar::funclocal" "\\\$$decimal = 4" "print 'scope1.c'::bar::funclocal" "No symbol \"scope1.c\" in current context.*" "print '$srcdir/$subdir/scope1.c'::bar::funclocal" } -proc test_at_foo {} { +proc_with_prefix test_at_foo {} { global gdb_prompt global decimal global det_file @@ -180,7 +180,7 @@ proc test_at_foo {} { } -proc test_at_bar {} { +proc_with_prefix test_at_bar {} { global gdb_prompt global decimal global det_file @@ -253,7 +253,7 @@ proc test_at_bar {} { # This test has little to do with local scopes, but it is in scope.exp anyway. # That's life. -proc test_at_autovars {} { +proc_with_prefix test_at_autovars {} { global gdb_prompt global decimal global hex @@ -278,7 +278,7 @@ proc test_at_autovars {} { gdb_test "frame" "#.*autovars \\(bcd=5, abc=6\\).*" "args in correct order" } -proc test_at_localscopes {} { +proc_with_prefix test_at_localscopes {} { global gdb_prompt global decimal global hex -- 2.30.0