I would like to report a problem I encountered using Devel::Cover today and how I got around it.

In preparation for CPAN uploads, I was using Devel::Cover v0.55 on Perl 5.8.7 to do coverage analysis of two different modules I maintain. One of these modules, Data::Presenter, has been under intense development in the last month, and I'd run Devel::Cover on it many times without incident.

The other, ExtUtils::ModuleMaker, I last worked on a month and a half ago. I ran Devel::Cover on it extensively prior to the last CPAN upload, which was in September. It worked very well. But tonight, I got this error message on every single file in the test suite:

% cover -delete
% make test HARNESS_PERL_SWITCHES=-MDevel::Cover

t/01_ini..........................ok 1/5Storable binary image v2.7 more recent than I am (v2.6) at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 328, at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Devel/Cover/DB/Structure.pm line 269
END failed--call queue aborted.

Why was I getting this error message running on one module but not on another?

I googled for the error message. The pages I found didn't exactly clarify the problem for me. The error seems to occur with Movable Type a lot, but I've never installed that. One page, however, did hint that if I upgrade Storable, that might fix the problem. I had been running Storable 2.13, so I upgraded to 2.15. I then re-ran the harness and Devel::Cover worked normally once again. Since I don't recall explicitly installing Storable before this, I assume that 2.13 came with 5.8.7.

Anyone else seen this and have a better diagnosis?  Thanks.

Jim Keenan

Reply via email to