Skip Menu |

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

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

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

Bug Information
Severity: Important
Broken in: 0.88
Fixed in: (no value)



Subject: run under sudo on OS X test fails
t/12_darwin_carbon.t .. 1/6 Use of uninitialized value $this in pattern match (m//) at t/12_darwin_carbon.t line 36, <DATA> line 1. # Failed test at t/12_darwin_carbon.t line 36. # undef # doesn't match '(?-xism:Music)' The test fails because root doesn't have the special folders it is trying to find in the reality check: sudo perl -MMac::Files -le 'print Mac::Files::FindFolder (Mac::Files::kUserDomain(), q{pdoc})' It also shouldn't be fatal if a normal user doesn't have such a special folder.
On Fri Dec 11 21:34:13 2009, IPENBURG wrote: Show quoted text
> t/12_darwin_carbon.t .. 1/6 Use of uninitialized value $this in pattern > match (m//) at t/12_darwin_carbon.t line 36, <DATA> line 1. > > # Failed test at t/12_darwin_carbon.t line 36. > # undef > # doesn't match '(?-xism:Music)' > > The test fails because root doesn't have the special folders it is > trying to find in the reality check: > sudo perl -MMac::Files -le 'print Mac::Files::FindFolder > (Mac::Files::kUserDomain(), q{pdoc})' > > It also shouldn't be fatal if a normal user doesn't have such a special > folder.
Same problem here. Not nice for beginners :)
It's not just sudo. sudo \su - then run cpan File::HomeDir has same failure.
Also getting an error in main.t which may be related to a failure to understand symlinks t/02_main.t ........... 1/51 # Failed test 'Legacy %~ tied interface' # at t/02_main.t line 228. # got: '/private/var/root' # expected: '/var/root' # Looks like you failed 1 test of 51. Schwern proposed a fix for CPANPLUS which may be applicable here. https://rt.cpan.org/Ticket/Display.html?id=53133
I'm seeing test failures on OSX, 5.10.0 as sudo also. harpua:~ root# cd ~/.cpanm/latest-build/File-HomeDir-0.89 harpua:File-HomeDir-0.89 root# ls Changes META.yml README lib LICENSE Makefile blib pm_to_blib MANIFEST Makefile.PL inc t harpua:File-HomeDir-0.89 root# perl M harpua:File-HomeDir-0.89 root# make Manifying blib/man3/File::HomeDir::Darwin::Cocoa.3pm Manifying blib/man3/File::HomeDir::Darwin.3pm Manifying blib/man3/File::HomeDir.3pm Manifying blib/man3/File::HomeDir::Unix.3pm Manifying blib/man3/File::HomeDir::Darwin::Carbon.3pm Manifying blib/man3/File::HomeDir::Windows.3pm harpua:File-HomeDir-0.89 root# 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.t ........ ok t/02_main.t ........... 1/51 # Failed test 'Legacy %~ tied interface' # at t/02_main.t line 228. # got: '/private/var/root' # expected: '/var/root' # Looks like you failed 1 test of 51. t/02_main.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/51 subtests (less 21 skipped subtests: 29 okay) t/11_darwin.t ......... 1/6 Use of uninitialized value $this in pattern match (m//) at t/11_darwin.t line 38. # Failed test at t/11_darwin.t line 38. # undef # doesn't match '(?-xism:Music)' Use of uninitialized value $this in pattern match (m//) at t/11_darwin.t line 39. # Failed test at t/11_darwin.t line 39. # undef # doesn't match '(?-xism:Movies)' Use of uninitialized value $this in pattern match (m//) at t/11_darwin.t line 40. # Failed test at t/11_darwin.t line 40. # undef # doesn't match '(?-xism:Pictures)' Use of uninitialized value $this in pattern match (m//) at t/11_darwin.t line 41. # Failed test at t/11_darwin.t line 41. # undef # doesn't match '(?-xism:Application Support)' # Looks like you failed 4 tests of 6. t/11_darwin.t ......... Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/6 subtests (less 1 skipped subtest: 1 okay) t/12_darwin_carbon.t .. skipped: Not running on 32-bit Darwin t/13_darwin_cocoa.t ... skipped: Not running on Darwin with Cocoa API using Mac::SystemDirectory t/97_meta.t ........... skipped: Author tests not required for installation t/98_pod.t ............ skipped: Author tests not required for installation t/99_pmv.t ............ skipped: Author tests not required for installation Test Summary Report ------------------- t/02_main.t (Wstat: 256 Tests: 51 Failed: 1) Failed test: 28 Non-zero exit status: 1 t/11_darwin.t (Wstat: 1024 Tests: 6 Failed: 4) Failed tests: 2-5 Non-zero exit status: 4 Files=8, Tests=65, 1 wallclock secs ( 0.05 usr 0.03 sys + 0.20 cusr 0.05 csys = 0.33 CPU) Result: FAIL Failed 2/8 test programs. 5/65 subtests failed. make: *** [test_dynamic] Error 255 harpua:File-HomeDir-0.89 root# make install harpua:File-HomeDir-0.89 root# perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm - Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common - DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include', optimize='-Os', cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing - I/usr/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -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='-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Locally applied patches: /Library/Perl/Updates/<version> comes before system perl directories installprivlib and installarchlib points to the Updates directory Built under darwin Compiled at Jun 24 2009 00:35:27 @INC: /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .
Should be fixed now I think