perl-pod / pod-simple

Framework for Parsing and Formatting POD
http://search.cpan.org/dist/Pod-Simple/
43 stars 59 forks source link

t/ - minor parallelism fixes to test files #149

Closed demerphq closed 1 year ago

demerphq commented 1 year ago

The test file t/puller.t cannot be run at the same time as itself, and t/JustPod_corpus.t may have a race with it as well. This patch changes puller.t to use a process private temp file, and it teaches JustPod_corpus.t to ignore files with "temp" in their name, as that is what puller.t creates.

We have had reports that Pod-Simple tests fail under parallel test mode in perl core. This hopefully fixes the problem, although I personally have been unable to recreate the race condition in core, I have been able to make puller.t fail when run against itself, which is at least an indicator it is not parallel safe. Karl Williamson however has experienced these failures.