From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7422 invoked by alias); 19 Jun 2013 19:44:04 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 7410 invoked by uid 89); 19 Jun 2013 19:44:03 -0000 X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 19 Jun 2013 19:44:02 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UpOIS-0002Ol-Tv from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Wed, 19 Jun 2013 12:44:00 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 19 Jun 2013 12:44:00 -0700 Received: from [172.30.14.165] ([172.30.14.165]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 Jun 2013 12:44:00 -0700 Message-ID: <51C209FC.3040206@codesourcery.com> Date: Wed, 19 Jun 2013 20:14:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: "'gdb-patches@sourceware.org'" Subject: [PATCH, testsuite] Fix subst.exp failure when GDB is configured with --with-relocated-sources Content-Type: multipart/mixed; boundary="------------030304040303030101070309" X-Virus-Found: No X-SW-Source: 2013-06/txt/msg00511.txt.bz2 This is a multi-part message in MIME format. --------------030304040303030101070309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 384 Hi, The gdb.base/subst.exp test assumes GDB starts with no default substitution rules, which is not true if GDB has been configured with --with-relocated-sources. In that case we start with a default rule, causing the first test (checking that there are no rules) to fail. This patch clears any default substitution rules that may exist prior to doing all the other tests. OK? --------------030304040303030101070309 Content-Type: text/x-patch; name="subst.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="subst.diff" Content-length: 829 2013-06-19 Luis Machado * gdb.base/subst.exp: Delete default rules before further tests. diff --git a/gdb/testsuite/gdb.base/subst.exp b/gdb/testsuite/gdb.base/subst.exp index e339557..50f6620 100644 --- a/gdb/testsuite/gdb.base/subst.exp +++ b/gdb/testsuite/gdb.base/subst.exp @@ -23,6 +23,12 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_test_no_output "set confirm off" \ "deactivate GDB's confirmation interface" +# Clear any substitution rules that are available by default due +# to GDB being configured with --with-relocated-sources. + +gdb_test_no_output "unset substitute-path" \ + "remove default substitution rules" + gdb_test "show substitute-path" \ "List of all source path substitution rules:" \ "show substitute-path, no rule entered yet" --------------030304040303030101070309--