[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Trouble fixing temp file issue with parallel testing
'make test' on blead today gave me the following failure:
lib/charnames.................................................Could not open
tmp0001: Permission denied at ../lib/charnames.t line 289, <DATA> line 1.
It seems that lib/charnames.t, lib/strict.t and lib/subs.t
try to use temp files with names starting at 'tmp0000'. The
above error would seem to have occurred with a collision
during parallel testing.
I figured the easiest way to fix this would be to 'require
test.pl' and use its new tempfile() function. This works
fine for lib/charnames.t which already did require test.pl.
When I tried similar changes to other two files, I got
failures like this:
> ./perl.exe -Ilib lib/strict.t
1..116
ok 1
PROG:
# strict refs - error
use strict ;
my $fred ;
my $a = ${"fred"} ;
EXPECTED:
Can't use string ("fred") as a SCALAR ref while "strict refs" in
use at - line 5.
GOT:
Can't use string ("fred") as a SCALAR ref while "strict refs" in
use at -B line 5.
not ok 2
and so on...
The difference is
... in use at - line ...
vs
... in use at -B line ...
I can't figure out where that extra 'B' is coming from.
- Follow-Ups from:
-
"Jerry D. Hedden" <jdhedden@cpan.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]