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: 81250
Status: new
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Statement and time counts inaccurate if a program forks
Download (untitled) / with headers
text/plain 585b
If a perl program forks, then the statements before the fork point count twice in the coverage report. Also, times seem also to be doubled. This can be easily tested with the following script: #!/usr/bin/perl use strict; my $x; for (1..100) { $x++; } if (fork) { exit; } __END__ For example, the $x++ statement count should be only 100 (which it is if the fork() block is removed), but it's actually 200. I don't know how to fix this best, but if a fork() can be detected, then it's probably best to reset all collected statistics in the child process. Regards, Slaven


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.