From patchwork Fri Apr 1 17:37:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Thuresson X-Patchwork-Id: 89311 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 19259B6F83 for ; Sat, 2 Apr 2011 04:37:26 +1100 (EST) Received: (qmail 16679 invoked by alias); 1 Apr 2011 17:37:24 -0000 Received: (qmail 16505 invoked by uid 22791); 1 Apr 2011 17:37:23 -0000 X-SWARE-Spam-Status: No, hits=-51.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Apr 2011 17:37:18 +0000 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id p31HbHmJ008620; Fri, 1 Apr 2011 10:37:17 -0700 Received: from martint2.mtv.corp.google.com (martint2.mtv.corp.google.com [172.18.116.35]) by wpaz24.hot.corp.google.com with ESMTP id p31HbGJT010896; Fri, 1 Apr 2011 10:37:16 -0700 Received: by martint2.mtv.corp.google.com (Postfix, from userid 66176) id 373851EEBD5; Fri, 1 Apr 2011 10:37:16 -0700 (PDT) To: reply@codereview.appspotmail.com, gcc-patches@gcc.gnu.org Subject: [google] Add testcase for relative paths for FDO (issue4354042) Message-Id: <20110401173716.373851EEBD5@martint2.mtv.corp.google.com> Date: Fri, 1 Apr 2011 10:37:16 -0700 (PDT) From: martint@google.com (Martin Thuresson) X-System-Of-Record: true 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 This patch should go into google/main. Add testcase to verify that relative profile paths workes. Bootstraped without regression on x86_64. 2011-04-01 Martin Thuresson PR gcov-profile/47793 * gcc/testsuite/gcc.dg/pr47793.c: New test --- This patch is available for review at http://codereview.appspot.com/4354042 Index: gcc/testsuite/gcc.dg/pr47793.c =================================================================== --- gcc/testsuite/gcc.dg/pr47793.c (revision 0) +++ gcc/testsuite/gcc.dg/pr47793.c (revision 0) @@ -0,0 +1,12 @@ +/* Bug pr47793: Allow relative paths in profile-generate. */ +/* { dg-do run } */ +/* { dg-options "-O -fprofile-generate=./" } */ +/* { dg-final { scan-file pr47793.gcda "."} } */ + +int +main(void) +{ + return 0; +} + +/* { dg-final { cleanup-coverage-files } } */