Subject: | Possibly incorrect use of local @INC |
Date: | Sun, 9 Mar 2008 20:14:26 -0000 (UTC) |
To: | bug-Perl-Dist-Strawberry [...] rt.cpan.org |
From: | ajr [...] ippimail.com |
I'm using Strawberry Perl (build information attached in build.txt) on
Windows XP to test Parrot's Configure code. Running tests which pass on
the Linux install, I experience the following failure condition:
C:\parrot>perl t/postconfigure/03-revision.t
1..8
ok 1 - Changed to temporary directory for testing
ok 2 - Able to make libdir
ok 3 - Able to make Parrot dir
Can't locate Config_heavy.pl in @INC (@INC contains:
C:\DOCUME~1\aa\LOCALS~1\Temp\q8q_5de3Tr/lib) at
C:/strawberry/perl/lib/Config.pm line 66.
cannot remove directory for C:\DOCUME~1\aa\LOCALS~1\Temp\q8q_5de3Tr:
Permission denied at C:/strawberry/perl/lib/File/Temp.pm line 901
# Looks like you planned 8 tests but only ran 3.
# Looks like your test died just after 3.
(A similar problem occurs with the following test.)
The problem appears to be caused by the use of a "local @INC" which has
the temporary directory unshifted into it.
Removing the (apparently pointless) code makes the problem go away, but
should the underlying modules be at the mercy of application-level
fiddling with @INC? (Unlike the Linux behaviour.)
--
Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com
Message body is not shown because sender requested not to inline it.