Subject: | tests do not pass when run in parallel |
When performing an installation that runs multiple tests in parallel (e.g. when HARNESS_OPTIONS is set to j9), some tests fail:
t/compile1.t .......... ok
/Users/ether/.cpanm/work/1439223953.1615/Template-Toolkit-2.26/t/test/tmp/cache//Users/ether/.cpanm/work/1439223953.1615/Template-Toolkit-2.26/t/test/src/foo.ttc: No such file or directory
FAILED 1: - cached foo
FAILED 2: - cached bar
FAILED 3: - cached blam
t/compile5.t ..........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
FAILED 5:
expect: []
result: [perl error - EVAL_PERL not set]
FAILED 1:
FAILED 2:
t/compile2.t ..........
Failed 2/15 subtests
FAILED 4:
FAILED 5:
t/compile4.t .......... ok
t/compile3.t ..........
Failed 2/14 subtests
t/constants.t ......... ok
It appears as if multiple tests are relying upon the same temporary files or directories. They should all use unique paths -- File::Temp can help with this.