From patchwork Sun Sep 4 15:08:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 15283 Received: (qmail 129610 invoked by alias); 4 Sep 2016 15:08:36 -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 129597 invoked by uid 89); 4 Sep 2016 15:08:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*bje, Hx-languages-length:1006, H*Ad:D*au 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; Sun, 04 Sep 2016 15:08:34 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ED47B15553; Sun, 4 Sep 2016 15:08:32 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-46.ams2.redhat.com [10.36.116.46]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u84F8TeU007182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 4 Sep 2016 11:08:31 -0400 Date: Sun, 4 Sep 2016 17:08:29 +0200 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Ben Elliston Subject: [gdb testsuite patch] Disable ccache Message-ID: <20160904150829.GA10655@host1.jankratochvil.net> References: <20160904084427.GA30664@host1.jankratochvil.net> <20160904100704.GA16072@air.net.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160904100704.GA16072@air.net.au> User-Agent: Mutt/1.7.0 (2016-08-17) X-IsSubscribed: yes On Sun, 04 Sep 2016 12:07:04 +0200, Ben Elliston wrote: > On Sun, Sep 04, 2016 at 10:44:27AM +0200, Jan Kratochvil wrote: > > So I find most safe and easy to just disable ccache for all > > testsuites. > > Thanks--I agree. As a principle, it makes no sense to cache in a test > environment. So now it just could be also included in GDB lib/future.exp. OK to check it in? Jan gdb/testsuite/ChangeLog 2016-09-04 Jan Kratochvil * lib/future.exp: Set CCACHE_DISABLE, clear CCACHE_NODISABLE. diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp index 2ecff2e..e7c9d9a 100644 --- a/gdb/testsuite/lib/future.exp +++ b/gdb/testsuite/lib/future.exp @@ -666,3 +666,8 @@ if {[info procs lreverse] == ""} { return $retval } } + +# Various ccache versions provide incorrect debug info such as ignoring +# different current directory, breaking GDB testsuite. +set env(CCACHE_DISABLE) 1 +unset -nocomplain env(CCACHE_NODISABLE)