From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12875 invoked by alias); 25 Feb 2014 19:50:51 -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 12865 invoked by uid 89); 25 Feb 2014 19:50:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Feb 2014 19:50:48 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1PJokkf001618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Feb 2014 14:50:46 -0500 Received: from host2.jankratochvil.net (ovpn-116-18.ams2.redhat.com [10.36.116.18]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1PJoc67006069 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 25 Feb 2014 14:50:42 -0500 Date: Tue, 25 Feb 2014 19:50:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: "gdb-patches@sourceware.org" Subject: [commit#2+7.7] [commit+7.7] [patch+7.7] Fix auto-load 7.7 regression (PR gdb/16626) Message-ID: <20140225195037.GA10859@host2.jankratochvil.net> References: <20140223212400.GA8831@host2.jankratochvil.net> <20140224090356.GA17734@host2.jankratochvil.net> <20140225174107.GB6287@host2.jankratochvil.net> <87k3cjt3jl.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <87k3cjt3jl.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00760.txt.bz2 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 320 On Tue, 25 Feb 2014 20:06:54 +0100, Tom Tromey wrote: > This new test fails for me on x86-64 Fedora 18. > I'm building outside the source tree in case that matters. > > FAIL: gdb.base/auto-load.exp: print $script_loaded You are right, I did not test it out-of-srctree. Checked in master and in 7.7. Thanks, Jan --7JfCtLOvnd9MIVvH Content-Type: message/rfc822 Content-Disposition: inline Content-length: 1496 From: Jan Kratochvil Date: Tue, 25 Feb 2014 20:47:09 +0100 Subject: [PATCH] PR gdb/16626 Content-length: 1378 gdb/testsuite/ 2014-02-25 Jan Kratochvil PR gdb/16626 * gdb.base/auto-load.exp: Fix out-of-srctree run. Message-ID: <87k3cjt3jl.fsf@fleche.redhat.com> --- gdb/testsuite/ChangeLog | 3 +++ gdb/testsuite/gdb.base/auto-load.exp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1a2b358..d54ed98 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -5,6 +5,9 @@ * gdb.base/auto-load.c: New file. * gdb.base/auto-load.exp: New file. + PR gdb/16626 + * gdb.base/auto-load.exp: Fix out-of-srctree run. + 2014-02-25 Jan Kratochvil Fix dw2-icycle.exp -fsanitize=address GDB crash. diff --git a/gdb/testsuite/gdb.base/auto-load.exp b/gdb/testsuite/gdb.base/auto-load.exp index 226711f..d0e93f0 100644 --- a/gdb/testsuite/gdb.base/auto-load.exp +++ b/gdb/testsuite/gdb.base/auto-load.exp @@ -20,8 +20,8 @@ if [is_remote host] { } set targetdir "${binfile}.dir" -set sourcescript "${binfile}-script" -set targetscriptdir "${targetdir}/[file dirname ${sourcescript}]" +set sourcescript "${srcdir}/${subdir}/${testfile}-script" +set targetscriptdir "${targetdir}/[file dirname ${binfile}]" set targetscript "${targetscriptdir}/${testfile}-gdb.gdb" remote_exec host "rm -rf ${targetdir}" -- 1.8.5.3 --7JfCtLOvnd9MIVvH--