Subject: | t/002_inherit.t fails in the presence of the "D" module |
If the CPAN module "D" is installed (see https://metacpan.org/pod/D ) then the test suite fails:
...
# Failed test 'Inherited DESTROY method'
# at t/002_inherit.t line 61.
# got: ''
# expected: 'E::DESTROY called for foo'
Can't locate object method "new" via package "D" at t/002_inherit.t line 64.
Tracked objects by class:
# Looks like your test exited with 255 just after 4.
t/002_inherit.t ................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 15/18 subtests
...
Looking at the test code it seems that the test package "D" needs now a similar workaround as already the test package "B" (which became "Blah"). However, to be on the safe side, it's probably better to use a safe namespace prefix for the test packages, best one you "own", for example Devel::Leak::Object::Test:: or so.