From patchwork Fri Aug 8 01:04:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 2350 Received: (qmail 12504 invoked by alias); 8 Aug 2014 01:09:06 -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 12466 invoked by uid 89); 8 Aug 2014 01:09:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Aug 2014 01:09:01 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1XFYfy-0001no-5F from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 07 Aug 2014 18:08:58 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 7 Aug 2014 18:08:57 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Thu, 7 Aug 2014 18:08:57 -0700 From: Yao Qi To: Subject: [PATCH] Make test messages in gdb.mi/mi-var-display.exp unique Date: Fri, 8 Aug 2014 09:04:45 +0800 Message-ID: <1407459885-7734-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes When I fix a bug in gdb.mi/mi-var-display.exp, I find its test messages aren't unique, which makes some confusions for me. $ cat testsuite/gdb.sum | grep "PASS" | sort | uniq -c | sort -n ... 2 PASS: gdb.mi/mi-var-display.exp: set format variable bar 2 PASS: gdb.mi/mi-var-display.exp: set format variable foo 2 PASS: gdb.mi/mi-var-display.exp: set format variable weird.func_ptr 2 PASS: gdb.mi/mi-var-display.exp: set format variable weird.func_ptr_ptr 2 PASS: gdb.mi/mi-var-display.exp: show format variable foo 3 PASS: gdb.mi/mi-var-display.exp: eval variable foo This patch is to make test messages in mi-var-display.exp unique. gdb/testsuite: 2014-08-08 Yao Qi PR testsuite/13443 * gdb.mi/mi-var-display.exp: Make test messages unique. --- gdb/testsuite/gdb.mi/mi-var-display.exp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index d20c6f0..2db4a7d 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -81,7 +81,7 @@ mi_gdb_test "-var-evaluate-expression bar" \ # Desc: change format of bar to hex mi_gdb_test "-var-set-format bar hexadecimal" \ "\\^done,format=\"hexadecimal\",value=\"0x849\"" \ - "set format variable bar" + "set format variable bar in hex" # Test: c_variable-6.6 # Desc: value of bar with new format @@ -97,7 +97,7 @@ mi_gdb_test "-var-assign bar 3" \ mi_gdb_test "-var-set-format bar decimal" \ "\\^done,format=\"decimal\",value=\"3\"" \ - "set format variable bar" + "set format variable bar in decimal" mi_gdb_test "-var-evaluate-expression bar" \ "\\^done,value=\"3\"" \ @@ -121,29 +121,29 @@ mi_gdb_test "-var-info-type foo" \ # Desc: format of variable foo mi_gdb_test "-var-show-format foo" \ "\\^done,format=\"natural\"" \ - "show format variable foo" + "show format variable foo in natural" # Test: c_variable-6.14 # Desc: value of variable foo mi_gdb_test "-var-evaluate-expression foo" \ "\\^done,value=\"$hex\"" \ - "eval variable foo" + "eval variable foo in natural" # Test: c_variable-6.15 # Desc: change format of var to octal mi_gdb_test "-var-set-format foo octal" \ "\\^done,format=\"octal\",value=\"$octal\"" \ - "set format variable foo" + "set format variable foo in octal" mi_gdb_test "-var-show-format foo" \ "\\^done,format=\"octal\"" \ - "show format variable foo" + "show format variable foo in octal" # Test: c_variable-6.16 # Desc: value of foo with new format mi_gdb_test "-var-evaluate-expression foo" \ "\\^done,value=\"\[0-7\]+\"" \ - "eval variable foo" + "eval variable foo in octal" # Test: c_variable-6.17 # Desc: change value of foo @@ -153,13 +153,13 @@ mi_gdb_test "-var-assign foo 3" \ mi_gdb_test "-var-set-format foo decimal" \ "\\^done,format=\"decimal\",value=\"3\"" \ - "set format variable foo" + "set format variable foo decimal" # Test: c_variable-6.18 # Desc: check new value of foo mi_gdb_test "-var-evaluate-expression foo" \ "\\^done,value=\"3\"" \ - "eval variable foo" + "eval variable foo in decimal" # Test: c_variable-6.19 @@ -175,7 +175,7 @@ mi_gdb_test "-var-show-format foo" \ mi_gdb_test "-var-evaluate-expression -f octal foo" \ "\\^done,value=\"03\"" \ - "eval variable foo in octal" + "eval variable -f octal foo" mi_gdb_test "-var-show-format foo" \ "\\^done,format=\"decimal\"" \ @@ -183,7 +183,7 @@ mi_gdb_test "-var-show-format foo" \ mi_gdb_test "-var-evaluate-expression -f decimal foo" \ "\\^done,value=\"3\"" \ - "eval variable foo in decimal" + "eval variable -f decimal foo" mi_gdb_test "-var-show-format foo" \ "\\^done,format=\"decimal\"" \ @@ -191,7 +191,7 @@ mi_gdb_test "-var-show-format foo" \ mi_gdb_test "-var-evaluate-expression -f nat foo" \ "\\^done,value=\"0x3\"" \ - "eval variable foo in natural" + "eval variable -f nat foo" mi_gdb_test "-var-show-format foo" \ "\\^done,format=\"decimal\"" \ @@ -234,7 +234,7 @@ mi_list_varobj_children weird { # Desc: change format of weird.func_ptr and weird.func_ptr_ptr mi_gdb_test "-var-set-format weird.func_ptr hexadecimal" \ "\\^done,format=\"hexadecimal\",value=\"$hex\"" \ - "set format variable weird.func_ptr" + "set format variable weird.func_ptr in hex (1)" mi_gdb_test "-var-show-format weird.func_ptr" \ "\\^done,format=\"hexadecimal\"" \ @@ -242,7 +242,7 @@ mi_gdb_test "-var-show-format weird.func_ptr" \ mi_gdb_test "-var-set-format weird.func_ptr_ptr hexadecimal" \ "\\^done,format=\"hexadecimal\",value=\"$hex\"" \ - "set format variable weird.func_ptr_ptr" + "set format variable weird.func_ptr_ptr in hex" mi_gdb_test "-var-show-format weird.func_ptr_ptr" \ "\\^done,format=\"hexadecimal\"" \ @@ -280,7 +280,7 @@ mi_gdb_test "-var-set-format weird.long_array natural" \ mi_gdb_test "-var-set-format weird.func_ptr hexadecimal" \ "\\^done,format=\"hexadecimal\",value=\"$hex\"" \ - "set format variable weird.func_ptr" + "set format variable weird.func_ptr in hex (2)" mi_gdb_test "-var-set-format weird.func_ptr_struct hexadecimal" \ "\\^done,format=\"hexadecimal\",value=\"$hex\"" \ @@ -288,7 +288,7 @@ mi_gdb_test "-var-set-format weird.func_ptr_struct hexadecimal" \ mi_gdb_test "-var-set-format weird.func_ptr_ptr natural" \ "\\^done,format=\"natural\",value=\"0x0\"" \ - "set format variable weird.func_ptr_ptr" + "set format variable weird.func_ptr_ptr in natural" mi_gdb_test "-var-set-format weird.u1 natural" \ "\\^done,format=\"natural\",value=\"\{...\}\"" \