Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 13536
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: steve [...] fisharerojo.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] gcov2perl fails to create full path to runs directory
When running gcov2perl, it will fail if a cover_db/ directory does not already exist while trying to create the cover_db/runs/ subdirectory. The following patch should fix that. --- gcov2perl.old Tue Jul 5 07:48:28 2005 +++ gcov2perl Tue Jul 5 07:49:12 2005 @@ -21,6 +21,7 @@ use Getopt::Long; use Pod::Usage; +use File::Path qw(mkpath); my $Options = { @@ -81,7 +82,7 @@ ); $db .= "/runs"; - mkdir $db unless -d $db; + mkpath $db unless -d $db; $db .= "/$run"; $cover->{db} = $db;
Date: Fri, 23 Sep 2005 00:28:01 +0200
From: Paul Johnson <paul [...] pjcj.net>
To: via RT <bug-Devel-Cover [...] rt.cpan.org>
Subject: Re: [cpan #13536] [PATCH] gcov2perl fails to create full path to runs directory
RT-Send-Cc:
On Tue, Jul 05, 2005 at 08:52:51AM -0400, via RT wrote: Show quoted text
> When running gcov2perl, it will fail if a cover_db/ directory does not > already exist while trying to create the cover_db/runs/ subdirectory. > The following patch should fix that.
Thanks, applied. -- Paul Johnson - paul@pjcj.net http://www.pjcj.net