Subject: | Fails under -T, Windows 7, Strawberry Perl 5.12.1 |
I was attempting to install Config::INI last night (following the
dependency chain for Dist::Zilla actually). A few of the test cases failed:
http://www.nntp.perl.org/group/perl.cpan.testers/2010/08/msg7663252.html
See this line:
Error in tempfile() using \XXXXXXXXXX: Could not create temp file
\TemKaXr2rW: Permission denied at t/reader-err.t line 40
I've pulled out everything but this section of code from the test case
and ran it with and without -T. (See attachment) Without -T, it
completes successfully. With -T, I get the same error as above, "Error
in tempfile() using \XXXXXXXXXX: Could not create temp file".
If you need any further assistance with resolving this issue, please let
me know.
C:\Users\mmusgrove\Development\perl>perl -V
Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread
uname='Win32 strawberryperl 5.12.1.0 #1 Thu Jul 29 19:04:04 2010 x64'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64
-DCONSERVATIVE
-DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-al
iasing -mms-bitfields -DPERL_MSVCRT_READFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.4.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long
long',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE"
-L"C:\strawberry\c\li
b"'
libpth=C:\strawberry\c\lib C:\strawberry\c\x86_64-w64-mingw32\lib
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm
-lversion
-lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lver
sion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl512.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE"
-L"C:\st
rawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_64_BIT_INT
USE_ITHREADS USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
USE_SITECUSTOMIZE
Built under MSWin32
Compiled at Jul 29 2010 19:18:08
@INC:
C:/strawberry/perl/site/lib
C:/strawberry/perl/vendor/lib
C:/strawberry/perl/lib
.
Subject: | ft.pl |
#!perl -Tw
use strict;
use Test::More;
SKIP: {
eval "require File::Temp;" or skip "File::Temp not available", 1;
# This could probably be limited to being required for Cygwin.
eval "require filetest;" or skip "filetest.pm not available", 1;
filetest->import('access');
my ($fh, $fn) = File::Temp::tempfile(UNLINK => 1);
close $fh;
chmod 0222, $fn;
if (-r $fn) {
chmod 0666, $fh;
skip "chmoding file 0222 left it -r", 1;
}
eval { Config::INI::Reader->read_file($fn); };
like($@, qr/(?:couldn't|can't) read/, "can't read an unreadable file");
chmod 0666, $fh;
}