Skip Menu |

This queue is for tickets about the File-HomeDir CPAN distribution.

Report information
The Basics
Id: 24222
Status: resolved
Priority: 0/
Queue: File-HomeDir

People
Owner: Nobody in particular
Requestors: SHERLOCK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.62
Fixed in: (no value)



Subject: Various tests fail on OSX
Running make test with version 0.62, on on OSX 10.4.8 (intel), I get: whitbread 1130 % make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/01_compile....ok t/02_main.......ok 23/52 # Failed test 'Found our home directory' # at t/02_main.t line 185. t/02_main.......NOK 24 # Failed test 'Found our home directory' # at t/02_main.t line 196. t/02_main.......ok 26/52 # Failed test 'home(username) returns the same value' t/02_main.......NOK 27# at t/02_main.t line 205. # got: '/Users/sherlock' # expected: undef t/02_main.......ok 28/52 # Failed test 'Legacy %~ tied interface' t/02_main.......NOK 29# at t/02_main.t line 211. # got: '/Users/sherlock' # expected: undef # Failed test 'Found our home directory' # at t/02_main.t line 215. t/02_main.......ok 32/52 # Failed test 'Found our documents directory' t/02_main.......NOK 33# at t/02_main.t line 230. # Failed test 'Found our documents directory' t/02_main.......NOK 34# at t/02_main.t line 231. t/02_main.......ok 35/52 # Failed test 'Our music directory exists' # at t/02_main.t line 240. t/02_main.......NOK 36 # Failed test 'Our music directory exists' t/02_main.......NOK 37# at t/02_main.t line 241. t/02_main.......ok 38/52# Failed test 'Our pictures directory exists' # at t/02_main.t line 250. t/02_main.......NOK 39 # Failed test 'Our pictures directory exists' t/02_main.......NOK 40# at t/02_main.t line 251. t/02_main.......ok 41/52 # Failed test 'Our videos directory exists' t/02_main.......NOK 42# at t/02_main.t line 260. # Failed test 'Our videos directory exists' t/02_main.......NOK 43# at t/02_main.t line 261. t/02_main.......ok 44/52# Failed test 'Our desktop directory exists' # at t/02_main.t line 272. t/02_main.......NOK 45 # Failed test 'Our desktop directory exists' t/02_main.......NOK 46# at t/02_main.t line 273. t/02_main.......ok 47/52# Failed test 'Found our local data directory' # at t/02_main.t line 282. t/02_main.......NOK 48 # Failed test 'Found our local data directory' t/02_main.......NOK 49# at t/02_main.t line 283. t/02_main.......ok 51/52# Looks like you failed 17 tests of 52. t/02_main.......dubious Test returned status 17 (wstat 4352, 0x1100) DIED. FAILED tests 24-25, 27, 29-30, 33-34, 36-37, 39-40, 42-43, 45-46, 48-49 Failed 17/52 tests, 67.31% okay (less 5 skipped tests: 30 okay, 57.69%) t/99_author.....skipped all skipped: Author tests not required for installation Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------ - t/02_main.t 17 4352 52 17 32.69% 24-25 27 29-30 33-34 36-37 39-40 42- 43 45-46 48-49 1 test and 5 subtests skipped. Failed 1/3 test scripts, 66.67% okay. 17/59 subtests failed, 71.19% okay. make: *** [test_dynamic] Error 2 whitbread 1132 % perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level uname='darwin b01.apple.com 8.0 darwin kernel version 8.3.0: mon oct 3 20:04:04 pdt 2005; root:xnu-792.6.22.obj~2release_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 -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict- aliasing -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env 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_dlopen.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: 23953 - fix for File::Path::rmtree CAN-2004-0452 security issue 33990 - fix for setuid perl security issues SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under darwin Compiled at Oct 16 2006 22:54:34 %ENV: PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" @INC: /sw/lib/perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5/5.8.6 /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 . whitbread 1133 % uname -a Darwin whitbread.stanford.edu 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
From: stennie [...] cpan.org
Show quoted text
> Running make test with version 0.62, on on OSX 10.4.8 (intel), I get:
Tried this as root / non-root / sudo user on OS X 10.4.8 (intel) and can't reproduce the failing tests for File::HomeDir 0.62 or 0.63. My perl and OS X versions match the original comment. Appears the failing tests are trying to find directories for a user account which is expected to have these but does not. Is there anything special about the account used to run the tests? Cheers, Stephen
Subject: Re: [rt.cpan.org #24222] Various tests fail on OSX
Date: Fri, 12 Jan 2007 11:40:08 -0800
To: bug-File-HomeDir [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
Hi, I can't think of anything special about the account. My environment is (from which I removed the host): PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/usr/ local/bin:/bin:/sbin:/usr/bin:/usr/X11R6/bin:/tools/bio/bin: SECURITYSESSIONID=1ed3f430 HOME=/Users/sherlock SHELL=/bin/tcsh USER=sherlock __CF_USER_TEXT_ENCODING=0x1F5:0:0 TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=133 TERM=xterm-color LOGNAME=sherlock HOSTTYPE=intel-pc VENDOR=apple OSTYPE=darwin MACHTYPE=i386 SHLVL=1 PWD=/Users/sherlock/Installers/File-HomeDir-0.62 GROUP=sherlock CVS_RSH=/usr/bin/ssh MANPATH=/sw/share/man:/usr/share/man:/usr/X11R6/man:/man:/sw/lib/ perl5/5.8.6/man INFOPATH=/sw/share/info:/sw/info:/usr/share/info PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin SSH_ASKPASS=nps-ssh-askpass PAGER=less TMPDIR=/usr/tmp in case that's useful, Cheers, Gavin On Jan 11, 2007, at 8:24 PM, Stephen Steneker via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24222 > >
>> Running make test with version 0.62, on on OSX 10.4.8 (intel), I get:
> > Tried this as root / non-root / sudo user on OS X 10.4.8 (intel) > and can't reproduce the failing > tests for File::HomeDir 0.62 or 0.63. My perl and OS X versions > match the original comment. > > Appears the failing tests are trying to find directories for a user > account which is expected to > have these but does not. Is there anything special about the > account used to run the tests? > > Cheers, > Stephen
From: stennie [...] cpan.org
Show quoted text
> I can't think of anything special about the account. My environment > is (from which I removed the host):
Hi Gavin, Think I've found the problem .. expect your version of Tiger shipped with Mac::Carbon 0.71 which predated a batch of fixes for endian differences on Intel macs. Installing the latest Mac::Carbon should correct the test failures. Change notes here .. http://search.cpan.org/src/CNANDOR/Mac-Carbon-0.77/Changes Cheers, Stephen
Show quoted text
> Think I've found the problem .. expect your version of Tiger > shipped with Mac::Carbon 0.71 which predated a batch of fixes > for endian differences on Intel macs.
Hi Gavin, Prerequisites have been updated for File::HomeDir 0.64, freshly on CPAN. Cheers, Stephen
CPAN Testers says this is fixed