Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82961 invoked by uid 1010); 9 Aug 2005 20:49:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82946 invoked from network); 9 Aug 2005 20:49:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 20:49:10 -0000 X-Host-Fingerprint: 212.55.154.26 relay6.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.26:35427] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 03/30-04646-5C619F24 for ; Tue, 09 Aug 2005 16:49:09 -0400 Received: (qmail 18188 invoked from network); 9 Aug 2005 20:49:05 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.205) by relay6 with SMTP; 9 Aug 2005 20:49:05 -0000 Received: (qmail 12109 invoked from network); 9 Aug 2005 20:49:06 -0000 X-AntiVirus: PTMail-AV 0.3-0.86.2 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.138.48]) (envelope-sender ) by mta10 (qmail-ldap-1.03) with SMTP for ; 9 Aug 2005 20:49:06 -0000 Message-ID: <002001c59d23$c697f1f0$0100a8c0@pc07653> To: "John Coggeshall" , References: <1123619893.8518.7.camel@localhost.localdomain> Date: Tue, 9 Aug 2005 21:49:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] GCOV From: nlopess@php.net ("Nuno Lopes") Hi, I've already had a change to test your patch (I've even have asked my university for a server to put ithe reports on-line). I've also came into this issue, which happens because re2c is called in the wrong way (the output is printed to stdout, rather than directly to the file). Those files should be generated with 're2c -b -o output_file.c in_file.re'. (also: re2c should be called from the directory where the in_file.re is, so that it uses relatives paths) Conclusion, you just need to regenerate the parsers correctly. BTW, there was an error in your patch: it cleans the *.gcno files (which are generated at compile time) in cov_gen_clean() before running lcov, thus breaking the proccess. Nuno ----- Original Message ----- From: "John Coggeshall" To: Sent: Tuesday, August 09, 2005 9:38 PM Subject: [PHP-DEV] GCOV > Before we deep-freeze the CVS, I'd like to get my GCOV stuff committed. > The changes are relatively minor and I've already run it past Andi. I'm > trying to get around one last problem that maybe someone else can take > care of: > > The basic issue is that our parsers have broken file/line preprocessor > directives... since we're pre-generating these files and then committing > them, things like #file and #line are breaking gcov because it's using > them to look for source and the paths are from whomever committed them > to begin with. I spoke with Andi about this at OSCON and we agreed that > it's probably best when GCOV is enabled to strip those preprocessor > directives out beforehand. Any other thoughts/comments? If no one has a > better solution I'll commit the code later today. > > John