From: Ian Jackson Subject: Re: [xen-4.0-testing test] 7147: regressions - FAIL Date: Mon, 23 May 2011 16:40:58 +0100 Message-ID: <19930.32778.342171.90825@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ian Campbell , Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Keir Fraser writes ("Re: [Xen-devel] [xen-4.0-testing test] 7147: regressions - FAIL"): > Here's a nice short one that seems to work for me. It does rely on the > compiler emitting the word 'unrecognized' iff the option under test is > unrecognised. I strongly suspect this is a safe bet. Sadly, some mad people run with LC_MESSAGES set to something other than C which produces native-language error messages even from gcc. > Unfortunately I can't > see any way around grepping the output, since otherwise we can't distinguish > the integer-assignment-to-pointer warning from the unrecognised-option > warning. We don't need to distinguish them. We just need to know whether passing the option works or not. That's what my patch does. Ian.