Subject: | Possible Race condition in parallel testing |
Running with 10 harness jobs seems to cause random failures.
I'd suspect that the tests in question are doing IO in some common path not expecting that the other will write over them, but I haven't looked into it.
* Test::Harness Jobs=4
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
make --jobs=4 --load-average=1.0 test TEST_VERBOSE=0
t/00_compile.t .. ok
t/02_module.t ... ok
Can't open /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs-0.40/t/output/Sample/Module.pm.html. at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/wo
rk/Pod-ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133.
# Looks like your test exited with 2 before it could output anything.
---
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_compile.t .. ok
t/01_project.t .. ok
t/02_module.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/02_module.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=3, Tests=11, 1 wallclock secs ( 0.06 usr 0.01 sys + 0.91 cusr 0.09 csys = 1.07 CPU)
Result: FAIL
Makefile:797: recipe for target 'test_dynamic' failed
Can't open /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs-0.40/t/output/Module.pm.html. at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-
ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133.
# Looks like your test exited with 2 before it could output anything.