Subject: | hardcoded unix /tmp path in Log::Log4Perl testsuite |
t/002Logger..........ok 1/68Can't open /tmp/foobar (No such file or
directory) at C:\Documents and
Settings\cafranks\Desktop\cpan\Log-Log4perl-1.03\blib\lib/Log
/Log4perl/Appender/File.pm line 66.
# Looks like you planned 68 tests but only ran 66.
# Looks like your test died just after 66.
t/002Logger..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 67-68
Failed 2/68 tests, 97.06% okay
If you change line 371 in file t/002Logger.t
from...
my $app_file = Log::Log4perl::Appender::File->new(filename =>
"/tmp/foobar");
to...
my $app_file = Log::Log4perl::Appender::File->new(filename =>
File::Spec->catdir( File::Spec->tmpdir, 'foobar' ));
All tests will pass ok
Windows XP SP2
Show quoted text
>perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=de
fine
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTE
XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='3.4.5', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long
long', lseek
size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"c:\vanilla-perl\perl\lib\CORE"
-L"C:\vanilla-perl\
MinGW\lib"'
libpth=C:\vanilla-perl\MinGW\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm
-lversion -lodbc32 -lodbccp32
perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdl
g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32
-lmpr -lw
inmm -lversion -lodbc32 -lodbccp32
libc=-lmsvcrt, so=dll, useshrplib=yes, libperl=libperl58.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s
-L"c:\vanilla-perl\perl\lib\CORE" -L"C:\
vanilla-perl\MinGW\lib"'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS PERL_MALLOC_WRAP
PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES
USE_PERLIO
Built under MSWin32
Compiled at Feb 10 2006 10:33:10
@INC:
c:/vanilla-perl/perl/lib
c:/vanilla-perl/perl/site/lib
.