Subject: | No coverage for runtime with Devel::Cover and ModPerl::Registry |
When I'm running Devel::Cover with ModPerl::Registry, I get no
coverage info except for BEGIN blocks. When I'm running the same
script with Devel::Cover from command line or as a CGI, everything
works alright obviously.
Here's Devel::Cover related stuff in my httpd.conf:
MaxClients 1
PerlSetEnv DEVEL_COVER_OPTIONS -db,/tmp/cover_db,-silent,1
PerlRequire /var/www/project/startup.pl
<Directory "/var/www/project">
Order allow,deny
Allow from all
<FilesMatch "\.cgi$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</FilesMatch>
</Directory>
Here's startup.pl:
#!/usr/bin/perl
use Devel::Cover;
1;
--
Regards,
Ivan