From patchwork Wed May 28 22:41:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Mouring X-Patchwork-Id: 1188 Received: (qmail 9138 invoked by alias); 28 May 2014 22:42:10 -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 9071 invoked by uid 89); 28 May 2014 22:42:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: ni.com Received: from skprod3.natinst.com (HELO ni.com) (130.164.80.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 28 May 2014 22:42:08 +0000 Received: from us-aus-mgwout1.amer.corp.natinst.com (nb-snip2-1338.natinst.com [130.164.19.135]) by us-aus-skprod3.natinst.com (8.14.5/8.14.5) with ESMTP id s4SMg6Sm011680; Wed, 28 May 2014 17:42:06 -0500 Received: from linuxgetsreal.amer.corp.natinst.com ([130.164.14.198]) by us-aus-mgwout1.amer.corp.natinst.com (Lotus Domino Release 8.5.3FP5) with SMTP id 2014052817420514-446172 ; Wed, 28 May 2014 17:42:05 -0500 Received: by linuxgetsreal.amer.corp.natinst.com (sSMTP sendmail emulation); Wed, 28 May 2014 17:42:05 -0500 From: "Brad Mouring" To: gdb-patches@sourceware.org Cc: Joel Brobecker , Brad Mouring Subject: [PATCH 1/2] testsuite/subst: Add tests for printing matches Date: Wed, 28 May 2014 17:41:41 -0500 Message-Id: <1401316902-12320-2-git-send-email-brad.mouring@ni.com> In-Reply-To: <1401316902-12320-1-git-send-email-brad.mouring@ni.com> References: <20140528161531.GA4289@adacore.com> <1401316902-12320-1-git-send-email-brad.mouring@ni.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96, 1.0.14, 0.0.0000 definitions=2014-05-28_07:2014-05-28, 2014-05-28, 1970-01-01 signatures=0 The existing tests for printing matching substitution rules was insufficient as it was not testing that matching rules would actually be printed when checking with the "show substitute-path" command Signed-off-by: Brad Mouring --- gdb/testsuite/gdb.base/subst.exp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/testsuite/gdb.base/subst.exp b/gdb/testsuite/gdb.base/subst.exp index e132809..e99735b 100644 --- a/gdb/testsuite/gdb.base/subst.exp +++ b/gdb/testsuite/gdb.base/subst.exp @@ -95,6 +95,14 @@ gdb_test "show substitute-path depuis" \ "Source path substitution rule matching `depuis':\r\n +`depuis' -> `vers'." \ "show substitute-path depuis, after all paths added" +gdb_test "show substitute-path from/path" \ + "Source path substitution rule matching `from/path':\r\n +`from' -> `to'." \ + "show substitute-path from/path, after all paths added" + +gdb_test "show substitute-path from_a_bad_path" \ + "Source path substitution rule matching `from_a_bad_path':" \ + "show substitute-path from_a_bad_path, after all paths added" + gdb_test "show substitute-path garbage" \ "Source path substitution rule matching `garbage':" \ "show substitute-path garbage, after all paths added"