This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id:
57890
Status:
open
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Unimportant
Broken in:
(no value)
Fixed in:
(no value)



Subject: ./Build testcover fails on Module-Build itself
I forked dagolden's module-build from github.com, so I was working with version 0.36_11. I wanted to see how thoroughly Module-Build's test suite exercised its code. So I ran Build.PL && ./Build and ./Build testcover. Three tests failed outright: t/ppm.t; t/properties/needs_compiler.t; t/xs.t. This prevented the 'testcover' target from completing, which meant that I could not run 'cover'. Hence, no coverage analysis and no way to know where to start writing additional tests. I got the same results with: perl Makefile.PL; make; harness (my own alias for running make test with Devel::Cover). I don't know whether this should be thought of as a Module-Build bug or a Devel-Cover limitation. But xdg suggested I file an RT here. Thank you very much. Jim Keenan
Subject: build.testcover.fails.txt
[module-build] 514 $ ./Build && ./Build testcover Building Module-Build t/00-compile.t ................. ok t/PL_files.t ................... ok t/actions/installdeps.t ........ ok t/actions/manifest_skip.t ...... ok t/add_property.t ............... ok t/basic.t ...................... ok t/bundle_inc.t ................. skipped: $ENV{MB_TEST_EXPERIMENTAL} is not set t/compat.t ..................... 145/? Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Deleting old coverage for changed file /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/compat.t ..................... 154/? Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-giZgAe6e/Simple/_build/lib/Bar/Builder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/compat.t ..................... ok t/compat/exit.t ................ ok t/debug.t ...................... ok t/destinations.t ............... ok t/ext.t ........................ ok t/extend.t ..................... 13/64 Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Deleting old coverage for changed file /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-57f25CDf/Simple/_build/lib/MBB.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. Can't find digest for /private/tmp/MB-57f25CDf/Simple/_build/lib/MyModuleBuilder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/extend.t ..................... ok t/files.t ...................... ok t/help.t ....................... 21/23 Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Deleting old coverage for changed file /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Use of uninitialized value $stash in string ne at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1385. Use of uninitialized value $stash in concatenation (.) or string at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1386. Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Use of uninitialized value $stash in string ne at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1385. Use of uninitialized value in string ne at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1385. Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Use of uninitialized value $stash in string ne at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1385. Use of uninitialized value in string ne at /usr/local/lib/perl5/5.12.0/B/Deparse.pm line 1385. Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-KMworlZK/Simple/_build/lib/MyModuleBuilder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/help.t ....................... ok t/install.t .................... ok t/install_extra_target.t ....... ok t/manifypods.t ................. ok t/metadata.t ................... ok t/metadata2.t .................. ok t/moduleinfo.t ................. ok t/mymeta.t ..................... ok t/new_from_context.t ........... ok t/notes.t ...................... ok t/par.t ........................ skipped: Archive::Zip required. t/parents.t .................... ok t/perl_mb_opt.t ................ ok t/pod_parser.t ................. ok t/ppm.t ........................ 1/? panic: pp_match start/end pointers at /usr/local/lib/perl5/5.12.0/ExtUtils/ParseXS.pm line 218. # Looks like you planned 12 tests but ran 1. # Looks like your test exited with 2 just after 1. t/ppm.t ........................ Dubious, test returned 2 (wstat 512, 0x200) Failed 11/12 subtests t/properties/module_name.t ..... ok t/properties/needs_compiler.t .. 17/19 # Failed test 'hidden compiler resulted in fatal message during Build' # at t/properties/needs_compiler.t line 120. # 'panic: pp_match start/end pointers at /usr/local/lib/perl5/5.12.0/ExtUtils/ParseXS.pm line 218. # ' # doesn't match '(?-xism:no compiler detected)' # Looks like you failed 1 test of 19. t/properties/needs_compiler.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/19 subtests t/properties/share_dir.t ....... ok t/resume.t ..................... ok t/runthrough.t ................. ok t/sample.t ..................... ok t/script_dist.t ................ ok t/signature.t .................. skipped: $ENV{TEST_SIGNATURE} is not set t/test_file_exts.t ............. ok t/test_type.t .................. 6/7 Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Deleting old coverage for changed file /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-QOplmmWL/Simple/_build/lib/MyModuleBuilder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/test_type.t .................. ok t/test_types.t ................. 20/25 Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Deleting old coverage for changed file /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Devel::Cover: Can't open /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm for MD5 digest: No such file or directory Can't find digest for /private/tmp/MB-gaqReVmC/Simple/_build/lib/MyModuleBuilder.pm at /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level/Devel/Cover/DB/Structure.pm line 254. t/test_types.t ................. ok t/tilde.t ...................... ok t/use_tap_harness.t ............ ok t/versions.t ................... ok t/write_default_maniskip.t ..... ok t/xs.t ......................... 1/? # Failed test at t/xs.t line 41. # got: 'panic: pp_match start/end pointers at /usr/local/lib/perl5/5.12.0/ExtUtils/ParseXS.pm line 218. # ' # expected: '' Can't locate loadable object for module Simple in @INC (@INC contains: /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/arch /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/lib _build/lib t/lib /Users/jimk/gitwork/module-build/blib/arch /Users/jimk/gitwork/module-build/blib/lib inc t/bundled lib /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/darwin-2level /usr/local/lib/perl5/5.12.0 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 49. Can't locate loadable object for module Simple in @INC (@INC contains: /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/arch /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/lib _build/lib t/lib /Users/jimk/gitwork/module-build/blib/arch /Users/jimk/gitwork/module-build/blib/lib inc t/bundled lib /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/darwin-2level /usr/local/lib/perl5/5.12.0 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 53. # '' # doesn't match '(?-xism:ok$)' Can't locate loadable object for module Simple in @INC (@INC contains: /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/arch /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/lib _build/lib t/lib /Users/jimk/gitwork/module-build/blib/arch /Users/jimk/gitwork/module-build/blib/lib inc t/bundled lib /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/darwin-2level /usr/local/lib/perl5/5.12.0 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted. t/xs.t ......................... 5/? # Failed test at t/xs.t line 57. # '' # doesn't match '(?-xism:0.01$)' Can't locate loadable object for module Simple in @INC (@INC contains: /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/arch /private/tmp/MB-NdYYFTBF/Simple/lib/../blib/lib _build/lib t/lib /Users/jimk/gitwork/module-build/blib/arch /Users/jimk/gitwork/module-build/blib/lib inc t/bundled lib /usr/local/lib/perl5/site_perl/5.12.0/darwin-2level /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/darwin-2level /usr/local/lib/perl5/5.12.0 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 61. # '' # doesn't match '(?-xism:0.01$)' ERROR: Missing required field 'dist_author' for metafile ERROR: Missing required field 'dist_abstract' for metafile Can't find dist packages without a MANIFEST file Run 'Build manifest' to generate one WARNING: Possible missing or corrupt 'MANIFEST' file. Nothing to enter for 'provides' field in metafile. t/xs.t ......................... 15/? # Failed test at t/xs.t line 115. # got: 'panic: pp_match start/end pointers at /usr/local/lib/perl5/5.12.0/ExtUtils/ParseXS.pm line 218. # ' # expected: '' t/xs.t ......................... 18/? # Failed test at t/xs.t line 202. # got: 'panic: pp_match start/end pointers at /usr/local/lib/perl5/5.12.0/ExtUtils/ParseXS.pm line 218. # ' # expected: '' # Looks like you failed 7 tests of 20. t/xs.t ......................... Dubious, test returned 7 (wstat 1792, 0x700) Failed 7/20 subtests Test Summary Report ------------------- t/ppm.t (Wstat: 512 Tests: 1 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 12 tests but ran 1. t/properties/needs_compiler.t (Wstat: 256 Tests: 19 Failed: 1) Failed test: 19 Non-zero exit status: 1 t/xs.t (Wstat: 1792 Tests: 20 Failed: 7) Failed tests: 2-6, 15, 18 Non-zero exit status: 7 Files=45, Tests=1157, 4568 wallclock secs ( 1.70 usr 0.84 sys + 3218.70 cusr 213.21 csys = 3434.45 CPU) Result: FAIL Failed 3/45 test programs. 8/1157 subtests failed.
On Wed May 26 22:00:48 2010, JKEENAN wrote:
Show quoted text
> > Three tests failed outright: t/ppm.t; t/properties/needs_compiler.t; > t/xs.t.
I should have added: These 3 test files passed with regular ./Build test or with prove -vb. So the problem is definitely related to the testcover target.
This problem was alluded to in another RT by Eric Wilhelm in August 2008: https://rt.cpan.org/Ticket/Display.html?id=38318#txn-553147


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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