Subject: | Proc::Daemon |
Hello there,
I use Proc::Daemon as a prerequisite in one of my distributions (thank you for writing it!) and today I found out that the tests from Proc::Daemon fail when are executed in parallel.
Meanwhile this is not a big deal, Proc::Daemon is probably getting "wrong" tests results because the tests do not support to be executed in parallel.
I didn't checkout how the tests were created, but probably they have some dependency regarding shared data between them.
A possible way to avoid those errors is creating a simple YAML file inside the "t" directory called "testrules.yml" (without the double quotes) with the following content:
---
seq: 't/*.t'
This configuration will disable parallel testing execution by forcing all tests to be executed sequentially.
You can check more details about this configuration on Test::Harness Pod (http://search.cpan.org/~leont/Test-Harness-3.35/lib/Test/Harness.pm#ENVIRONMENT_VARIABLES_THAT_AFFECT_TEST::HARNESS), specifically on the environment variable HARNESS_OPTIONS with a "-j" option set.
You also can check failures caused by this by looking at the reports with the following detail:
------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------
Environment variables:
HARNESS_OPTIONS = j4
That will tell you that the tests were executed in parallel.
Hope this helps.
Best regards,
Alceu