Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 12391
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.10
Fixed in: (no value)



Subject: Tests fail on MacOSX
I get the following error from both "make test" and "Build test". Using M::B 0.2609, OSX 10.3.9, perl 5.8.1 (Apple's Perl distribution). Perl -V uput below. The test passes if I use 5.8.4 or 5.8.6, as packaged by Fink. I *think* the difference is that Apple's perl 5.8.1 has File::Spec 0.86 while 5.8.4 has v0.87 and 5.8.6 has v3.01. So, perhaps Path::Class should require File::Spec >= 0.87 ? t/01-basic.........ok t/02-foreign.......NOK 16# Test 16 got: 'C:\\Program Files' (t/02-foreign.t at line 38) # Expected: 'C:\Program Files' # t/02-foreign.t line 38 is: ok $dir->subdir('Program Files'), 'C:\\Program Files'; t/02-foreign.......FAILED test 16 Failed 1/23 tests, 95.65% okay (less 2 skipped tests: 20 okay, 86.96%) t/03-filesystem....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/02-foreign.t 23 1 4.35% 16 2 subtests skipped. Failed 1/3 test scripts, 66.67% okay. 1/120 subtests failed, 99.17% okay. % perl -V Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3) configuration: Platform: osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25 16:58:41 pdt 2003; root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh powerpc ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include', optimize='-Os', cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1495)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: RC3 Built under darwin Compiled at Sep 12 2003 19:50:49 %ENV: PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin:/Users/chris/perl/lib:/Users/chris/perl/lib/darwin-thread-multi-2level:/Users/chris/perl/Library/Perl" PERL5_CPANPLUS_CONFIG="/Users/chris/.cpanplus/config" @INC: /sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1 /sw/lib/perl5 /sw/lib/perl5/darwin /Users/chris/perl/lib/darwin-thread-multi-2level /Users/chris/perl/lib /Users/chris/perl/lib/darwin-thread-multi-2level /Users/chris/perl/Library/Perl/5.8.1/darwin-thread-multi-2level /Users/chris/perl/Library/Perl/5.8.1 /Users/chris/perl/Library/Perl /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .
From: bob.faist [...] gmail.com
I was able to get the 02-foreign.t test script to pass by changing line 38 to add a extra backslash. I am using Apple's perl 5.8.1. OLD: ok $dir->subdir('Program Files'), 'C:\\Program Files'; NEW: ok $dir->subdir('Program Files'), 'C:\\\Program Files'; [CDOLAN - Sat Apr 23 23:36:52 2005]: Show quoted text
> I get the following error from both "make test" and "Build test". > Using M::B 0.2609, OSX 10.3.9, perl 5.8.1 (Apple's Perl > distribution). Perl -V uput below. The test passes if I use 5.8.4 > or 5.8.6, as packaged by Fink. I *think* the difference is that > Apple's perl 5.8.1 has File::Spec 0.86 while 5.8.4 has v0.87 and > 5.8.6 has v3.01. > > So, perhaps Path::Class should require File::Spec >= 0.87 ? > > > t/01-basic.........ok > t/02-foreign.......NOK 16# Test 16 got: 'C:\\Program Files' (t/02- > foreign.t at line 38) > # Expected: 'C:\Program Files' > # t/02-foreign.t line 38 is: ok $dir->subdir('Program Files'), > 'C:\\Program Files'; > t/02-foreign.......FAILED test 16 > Failed 1/23 tests, 95.65% okay (less 2 skipped tests: 20 okay, > 86.96%) > t/03-filesystem....ok > Failed Test Stat Wstat Total Fail Failed List of Failed >
------------------------------------------------------------------------------ - Show quoted text
> t/02-foreign.t 23 1 4.35% 16 > 2 subtests skipped. > Failed 1/3 test scripts, 66.67% okay. 1/120 subtests failed, 99.17% > okay. > > > > > % perl -V > Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3) > configuration: > Platform: > osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level > uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25 > 16:58:41 pdt 2003; root:xnu-344.frankd.rootsxnu- > 344.frankd~objrelease_ppc power macintosh powerpc ' > config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe > -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN > -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include', > optimize='-Os', > cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN > -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include' > ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build > 1495)', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib' > libpth=/usr/local/lib /usr/lib > libs=-ldbm -ldl -lm -lc > perllibs=-ldl -lm -lc > libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, > libperl=libperl.dylib > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup > -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES > PERL_IMPLICIT_CONTEXT > Locally applied patches: > RC3 > Built under darwin > Compiled at Sep 12 2003 19:50:49 > %ENV: > PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin:/Users/chris/perl/lib:/Users/chris/perl/
lib/darwin- Show quoted text
> thread-multi-2level:/Users/chris/perl/Library/Perl" > PERL5_CPANPLUS_CONFIG="/Users/chris/.cpanplus/config" > @INC: > /sw/lib/perl5/5.8.1/darwin-thread-multi-2level > /sw/lib/perl5/5.8.1 > /sw/lib/perl5 > /sw/lib/perl5/darwin > /Users/chris/perl/lib/darwin-thread-multi-2level > /Users/chris/perl/lib > /Users/chris/perl/lib/darwin-thread-multi-2level > /Users/chris/perl/Library/Perl/5.8.1/darwin-thread-multi-2level > /Users/chris/perl/Library/Perl/5.8.1 > /Users/chris/perl/Library/Perl > /System/Library/Perl/5.8.1/darwin-thread-multi-2level > /System/Library/Perl/5.8.1 > /Library/Perl/5.8.1/darwin-thread-multi-2level > /Library/Perl/5.8.1 > /Library/Perl > /Network/Library/Perl/5.8.1/darwin-thread-multi-2level > /Network/Library/Perl/5.8.1 > /Network/Library/Perl > .
Thanks, Chris & Bob - the next version of Path::Class will require version 0.87 of File::Spec. -Ken