CC: | NHORNE [...] cpan.org, ANDK [...] cpan.org |
Subject: | Race condition while running pod test |
It seems that t/099pod.t may fail if the test suite is run in parallel (with HARNESS_OPTIONS=j...). Sample fail reports:
* http://www.cpantesters.org/cpan/report/0eb82868-4030-11e6-a1f4-fada5bc2a771
* http://www.cpantesters.org/cpan/report/374d4218-b4c1-11e5-acf6-b916fa003568
My guess what's happening here: Test::Pod first has to find out all the perl files in the distribution to run the pod test on. The test-block.pl file is just transient, and exists only in this phase, but is already vanished when Test::Pod is about to run the checks. Maybe it would be better to create test-block.pl in a temporary directory, or the Test::Pod call should exclude this file.