Subject: | "Bizarre Copy of Hash" error |
The following test passes on Perl 5.8.7 (note the strange attempt to
take a hash slice on the last line):
#!/usr/bin/perl
use warnings;
use strict;
use Test::More 'no_plan';
ok $_ = {}, 'assign empty hashref';
ok ! @{%$_}{qw/ accounts /}, '... and it should have no data';
However, when run withe Devel::Cover:
HARNESS_PERL_SWITCHES=-MDevel::Cover prove -lr t/cover.t
t/cover....ok 1/0Bizarre copy of HASH in leave at t/cover.t line 8.
# Looks like your test died just after 1.
t/cover....dubious
Test returned status 255 (wstat 65280, 0xff00)
after all the subtests completed successfully
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/cover.t 255 65280 1 0 ??
Failed 1/1 test scripts. 0/1 subtests failed.
Files=1, Tests=1, 1 wallclock secs ( 1.48 cusr + 0.37 csys = 1.85 CPU)
Failed 1/1 test programs. 0/1 subtests failed.
Cheers,
Ovid