From patchwork Thu Feb 26 15:09:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 443967 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 90B441400B6 for ; Fri, 27 Feb 2015 02:09:31 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wMc6ZSdn; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=STZbfaWu+ul+vx+sr1Ygve2SXnX71+nGNFjpXNkW7h9FHM h4c4BazZZs3Yf00E3gUyqn1lbagzXnlzwVzkuCt00yWmt9VxJKE28BZF9EgMn0VY tFNuPrya9iqOEKX882am7NspgDC+cSU9J4avQzMx2dykFhzWEtryhxvFuN5cM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=6iJTmz3nrCEvGNcG1WcAs5PHVIw=; b=wMc6ZSdnDXd/nuAUbf6W HWXyDwzu2cTgMp0z52gqeO3URd0rQGrHy/CAr/7lPOxi7FE6fNDMf/oLYwOAznQf iCj9d5yWJHjzBowDiqdluvDKLY/qRiE8AMTLglJyZ0Dfw8XwN+hnUPjfl+nGChRV VbjHszvdH3ECGee4/SQNfRs= Received: (qmail 40433 invoked by alias); 26 Feb 2015 15:09:23 -0000 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 Received: (qmail 40422 invoked by uid 89); 26 Feb 2015 15:09:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Feb 2015 15:09:12 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YR03p-0001Mx-FB from Tom_deVries@mentor.com ; Thu, 26 Feb 2015 07:09:09 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Thu, 26 Feb 2015 15:09:07 +0000 Message-ID: <54EF3711.9080500@mentor.com> Date: Thu, 26 Feb 2015 16:09:05 +0100 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mike Stump , GCC Patches Subject: [PATCH, testsuite] Add missing cleanup in run-gcov Hi, This patch adds cleaning up of uninteresting leftover coverage files in case of xfail, f.i. for gcc.misc-tests/gcov-13.c. OK for stage4 trunk? Thanks, - Tom 2015-02-26 Tom de Vries * lib/gcov.exp: Cleanup in case of xfail. --- gcc/testsuite/lib/gcov.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/lib/gcov.exp b/gcc/testsuite/lib/gcov.exp index 6273ffa..229a396 100644 --- a/gcc/testsuite/lib/gcov.exp +++ b/gcc/testsuite/lib/gcov.exp @@ -391,6 +391,9 @@ proc run-gcov { args } { } if { $tfailed > 0 } { fail "$testname gcov: $lfailed failures in line counts, $bfailed in branch percentages, $cfailed in return percentages, $ifailed in intermediate format" + if { $xfailed } { + clean-gcov $testcase + } } else { pass "$testname gcov" clean-gcov $testcase -- 1.9.1