Skip Menu |

This queue is for tickets about the Proc-Daemon CPAN distribution.

Report information
The Basics
Id: 108012
Status: resolved
Priority: 0/
Queue: Proc-Daemon

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

Bug Information
Severity: Normal
Broken in: 0.21
Fixed in: 0.22



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
Hi Alceu! You are right, tests interfere with each other because of files being created by them in the work directory. Thank you very much for your suggestion! I've added it and released as 0.22. ~Pavel