From patchwork Thu Aug 30 02:44:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Terry Guo X-Patchwork-Id: 180794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 3DB652C0115 for ; Thu, 30 Aug 2012 12:43:06 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1346899387; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=o22kRu6oAWs4tvz6XZRgdauaa3Y=; b=iqXACR0bWNLgKVB1mz9lYbsD3SHMLHwkA/8j0pGNJeOtTMhWHAimOZi9/7n7wc BOU3XeGPD/VrzjtHOBrFfVyw7nHuNcq3WKycEKOnEkgp30Eh01Ov9NW3X9crGIYE p7gmMZh98060FYX+RdSbnOv7VdYhNOTe5U9qbdFscXCas= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:X-MC-Unique:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=QiA1nrgW2t7KCrHZpUXk+PQACQFGqoV1zAmk57sWyt+7xzrj6cwzo5oaKbn9ql 1xVyV0m62n+2f2QEwVZ0U7i5z6OF+wcrkkvvWRwXtpY95Z431l3xPvfbngps4CBt 0NSere+3k1avc2ti/AER83RSM7i4vvsWaETJk34KQrsMs=; Received: (qmail 16462 invoked by alias); 30 Aug 2012 02:43:00 -0000 Received: (qmail 16447 invoked by uid 22791); 30 Aug 2012 02:42:57 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Aug 2012 02:42:44 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 30 Aug 2012 03:42:39 +0100 Received: from shawin053 ([10.164.2.89]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 30 Aug 2012 03:44:37 +0100 From: "Terry Guo" To: "'Mike Stump'" Cc: , "Richard Guenther" References: <000201cd842c$0ceda220$26c8e660$@guo@arm.com> In-Reply-To: Subject: RE: [Patch, test] Enable to prune warnings for tests defined in one exp file Date: Thu, 30 Aug 2012 10:44:33 +0800 Message-ID: <000001cd8659$64dbcc30$2e936490$@guo@arm.com> MIME-Version: 1.0 X-MC-Unique: 112083003423900201 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > -----Original Message----- > From: Mike Stump [mailto:mikestump@comcast.net] > Sent: Tuesday, August 28, 2012 1:21 AM > To: Terry Guo > Cc: gcc-patches@gcc.gnu.org; Richard Guenther > Subject: Re: [Patch, test] Enable to prune warnings for tests defined > in one exp file > > On Aug 27, 2012, at 1:14 AM, Terry Guo wrote: > > This patch intends to provide a chance to prune common warning > messages for > > tests defined in an exp file. > > > Is it OK to trunk? > > Ok. > > If you can find where to document this... :-) That'd be nice. > I checked the texi files in gcc/doc folder, but can't find a suitable place. So I resort to README.gcc in gcc/testsuite which is claimed to list notes for those writing testcases and those writing expect scripts. Following is the patch. Is it OK? BR, Terry 2012-08-30 Terry Guo * README.gcc: Document new variable dg_runtest_extra_prunes. Copyright (C) 1997, 1998, 2004 Free Software Foundation, Inc. Index: gcc/testsuite/README.gcc =================================================================== --- gcc/testsuite/README.gcc (revision 190795) +++ gcc/testsuite/README.gcc (working copy) @@ -79,6 +79,11 @@ If a test does not fit into the torture framework, use the dg framework. +If some tests in an exp file need to skip same warning messages, just define +variable dg_runtest_extra_prunes in this exp file and let it contain this warning +message pattern. This can avoid duplicating dg-prune in these cases. +Always remember to clear this variable when leave this exp file. +