From patchwork Tue Nov 14 03:09:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 24229 Received: (qmail 118534 invoked by alias); 14 Nov 2017 03:09:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 118524 invoked by uid 89); 14 Nov 2017 03:09:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*RU:sk:barracu, HX-HELO:sk:barracu, Hx-spam-relays-external:sk:barracu, H*r:sk:barracu X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Nov 2017 03:09:51 +0000 X-ASG-Debug-ID: 1510628977-0c856e65d43b4de40001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id BAD2OFLrZCs4gkvW (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Nov 2017 22:09:37 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.lan (192-222-251-162.qc.cable.ebox.net [192.222.251.162]) by smtp.electronicbox.net (Postfix) with ESMTP id 8A7E2441D64; Mon, 13 Nov 2017 22:09:37 -0500 (EST) From: Simon Marchi X-Barracuda-Effective-Source-IP: 192-222-251-162.qc.cable.ebox.net[192.222.251.162] X-Barracuda-Apparent-Source-IP: 192.222.251.162 X-Barracuda-RBL-IP: 192.222.251.162 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb.opt/inline-locals.exp: Remove trailing parentheses in test names Date: Mon, 13 Nov 2017 22:09:36 -0500 X-ASG-Orig-Subj: [pushed] gdb.opt/inline-locals.exp: Remove trailing parentheses in test names Message-Id: <20171114030936.10538-1-simon.marchi@polymtl.ca> X-Barracuda-Connect: smtp.electronicbox.net[96.127.255.82] X-Barracuda-Start-Time: 1510628977 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4457 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.44814 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-IsSubscribed: yes Test names should not end with parentheses, since the buildbot strips those. gdb/testsuite/ChangeLog: * gdb.opt/inline-locals.exp: Remove trailing parentheses from test names. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.opt/inline-locals.exp | 36 ++++++++++++++++----------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7db0afca37..8c57179c34 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-13 Simon Marchi + + * gdb.opt/inline-locals.exp: Remove trailing parentheses from + test names. + 2017-11-09 Pedro Alves * gdb.tui/tui-completion.exp (test_tab_completion): New procedure, diff --git a/gdb/testsuite/gdb.opt/inline-locals.exp b/gdb/testsuite/gdb.opt/inline-locals.exp index 104dd48554..76463a6e31 100644 --- a/gdb/testsuite/gdb.opt/inline-locals.exp +++ b/gdb/testsuite/gdb.opt/inline-locals.exp @@ -34,18 +34,18 @@ set no_frames [skip_inline_frame_tests] set line1 [gdb_get_line_number "set breakpoint 1 here" ${srcfile2}] gdb_breakpoint $srcfile2:$line1 -gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar (1)" +gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar 1" -gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar (2)" +gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar 2" if { ! $no_frames } { gdb_test "backtrace" "#0 bar.*#1 .*func1.*#2 .*main.*" \ - "backtrace from bar (2)" - gdb_test "up" "#1 .*func1 .* at .*" "up from bar (2)" - gdb_test "info frame" ".*inlined into frame.*" "func1 inlined (2)" - gdb_test "info locals" "array = {.*}" "info locals above bar (2)" + "backtrace from bar 2" + gdb_test "up" "#1 .*func1 .* at .*" "up from bar 2" + gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 2" + gdb_test "info locals" "array = {.*}" "info locals above bar 2" - set msg "info args above bar (2)" + set msg "info args above bar 2" gdb_test_multiple "info args" $msg { -re "arg1 = $decimal\r\n$gdb_prompt $" { pass $msg @@ -59,13 +59,13 @@ if { ! $no_frames } { } } } else { - gdb_test "up" "#1 .*main .* at .*" "up from bar (2)" - gdb_test "info locals" ".*arg1 = 0.*" "info locals above bar (2)" + gdb_test "up" "#1 .*main .* at .*" "up from bar 2" + gdb_test "info locals" ".*arg1 = 0.*" "info locals above bar 2" } # Make sure that locals on the stack are found. This is an array to # prevent it from living in a register. -gdb_test "print array\[0\]" "\\\$$decimal = 0" "print local (2)" +gdb_test "print array\[0\]" "\\\$$decimal = 0" "print local 2" if { ! $no_frames } { # Verify that we do not print out variables from the inlined @@ -76,15 +76,15 @@ if { ! $no_frames } { # Repeat the tests from a depth of two inlined functions, and with a # more interesting value in the local array. -gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar (3)" +gdb_test "continue" ".*set breakpoint 1 here.*" "continue to bar 3" if { ! $no_frames } { gdb_test "backtrace" "#0 bar.*#1 .*func1.*#2 .*func2.*#3 .*main.*" \ - "backtrace from bar (3)" - gdb_test "up" "#1 .*func1 .* at .*" "up from bar (3)" - gdb_test "info frame" ".*inlined into frame.*" "func1 inlined (3)" - gdb_test "info locals" "array = {.*}" "info locals above bar (3)" + "backtrace from bar 3" + gdb_test "up" "#1 .*func1 .* at .*" "up from bar 3" + gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 3" + gdb_test "info locals" "array = {.*}" "info locals above bar 3" - set msg "info args above bar (3)" + set msg "info args above bar 3" gdb_test_multiple "info args" $msg { -re "arg1 = $decimal\r\n$gdb_prompt $" { pass $msg @@ -98,9 +98,9 @@ if { ! $no_frames } { } } } else { - gdb_test "up" "#1 .*main .* at .*" "up from bar (3)" + gdb_test "up" "#1 .*main .* at .*" "up from bar 3" gdb_test "info locals" ".*arg1 = 1.*" "info locals above bar (3a)" gdb_test "info locals" ".*arg2 = 184.*" "info locals above bar (3b)" } -gdb_test "print array\[0\]" "\\\$$decimal = 184" "print local (3)" +gdb_test "print array\[0\]" "\\\$$decimal = 184" "print local 3"