Subject: | t/01_basic.t fails on 'bad time zone' |
While installing this module as an indirect dependency for
Net::Amazon::S3, I encountered this test failure. See attached typescript.
Apparently the DateTime::TimeZone I'm using (version 0.93) returns undef
instead of returning an exception as documented, so this may very well
be a DateTime::TimeZone bug.
Subject: | moosex-types-datetime-butmaintained-bug.txt |
Script started on Thu Aug 6 15:32:10 2009
$ PERL_AUTOINSTALL=--defaultdeps cpanp -i MooseX::Types::DateTime::ButMaintain
i MooseX::Types::DateTime::ButMaintain <ed
Installing MooseX::Types::DateTime::ButMaintained (0.08)
Running [/usr/bin/perl /usr/bin/cpanp-run-perl /home/zakame/.cpanplus/5.10.0/build/MooseX-Types-DateTime-ButMaintained-0.08/Makefile.PL]...
Cannot determine perl version info from lib/MooseX/Types/DateTime/ButMaintained.pm
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
*** Since we're running under CPANPLUS, I'll just let it take care
of the dependency's installation later.
[Core Features]
- Test::Exception ...loaded. (0.27 >= 0.27)
- Test::More ...loaded. (0.92)
- Moose ...loaded. (0.88 >= 0.41)
- MooseX::Types ...loaded. (0.16 >= 0.04)
- namespace::clean ...loaded. (0.11 >= 0.08)
- DateTime ...loaded. (0.50 >= 0.4302)
- DateTime::Locale ...loaded. (0.43 >= 0.4001)
- DateTime::TimeZone ...loaded. (0.93 >= 0.7701)
- Olson::Abbreviations ...loaded. (0.02)
*** Module::AutoInstall configuration finished.
Writing Makefile for MooseX::Types::DateTime::ButMaintained
Running [/usr/bin/make test]...
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/01_basic.t t/02_olson_abbreviations.t t/03_local_floating.t
# Failed test 'bad time zone'
# at t/01_basic.t line 89.
# Looks like you failed 1 test of 21.
t/01_basic.t ................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/21 subtests
t/02_olson_abbreviations.t .. ok
t/03_local_floating.t ....... ok
Test Summary Report
-------------------
t/01_basic.t (Wstat: 256 Tests: 21 Failed: 1)
Failed test: 16
Non-zero exit status: 1
Files=3, Tests=28, 4 wallclock secs ( 0.08 usr 0.04 sys + 3.20 cusr 0.30 csys = 3.62 CPU)
Result: FAIL
Failed 1/3 test programs. 1/28 subtests failed.
*** Error code 255
Stop in /home/zakame/.cpanplus/5.10.0/build/MooseX-Types-DateTime-ButMaintained-0.08 (line 754 of Makefile).
[ERROR] MAKE TEST failed: Bad file descriptor PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/01_basic.t t/02_olson_abbreviations.t t/03_local_floating.t
# Failed test 'bad time zone'
# at t/01_basic.t line 89.
# Looks like you failed 1 test of 21.
t/01_basic.t ................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/21 subtests
t/02_olson_abbreviations.t .. ok
t/03_local_floating.t ....... ok
Test Summary Report
-------------------
t/01_basic.t (Wstat: 256 Tests: 21 Failed: 1)
Failed test: 16
Non-zero exit status: 1
Files=3, Tests=28, 4 wallclock secs ( 0.08 usr 0.04 sys + 3.20 cusr 0.30 csys = 3.62 CPU)
Result: FAIL
Failed 1/3 test programs. 1/28 subtests failed.
*** Error code 255
Stop in /home/zakame/.cpanplus/5.10.0/build/MooseX-Types-DateTime-ButMaintained-0.08 (line 754 of Makefile).
The tests for 'MooseX::Types::DateTime::ButMaintained' failed. Would you like me to proceed anyway or should we abort?
[4mProceed anyway? [y/N]:[24m
[ERROR] Unable to create a new distribution object for 'MooseX::Types::DateTime::ButMaintained' -- cannot continue
*** Install log written to:
/home/zakame/.cpanplus/install-logs/MooseX-Types-DateTime-ButMaintained-0.08-1249544008.log
Error installing 'MooseX::Types::DateTime::ButMaintained'
Problem installing one or more modules
$ cpanp
CPANPLUS::Shell::Default -- CPAN exploration and module installation (v0.88)
*** Please report bugs to <bug-cpanplus@rt.cpan.org>.
*** Using CPANPLUS::Backend v0.88. ReadLine support enabled.
*** Type 'p' now to show start up log
Did you know...
You can run an interactive setup using 's reconfigure'
[4mCPAN Terminal>[24m [1mz[m[1m [m[1mM[m[1mo[m[1mo[m[1ms[m[1me[m[1mX[m[1m:[m[1m:[m[1mT[m[1my[m[1mp[m[1me[m[1ms[m[1m:[m[1m:[m[1mD[m[1ma[m[1mt[m[1me[m[1mT[m[1mi[m[1mm[m[1me[m[1m:[m[1m:[m[1mB[m[1mu[m[1mt[m[1mM[m[1ma[m[1mi[m[1mn[m[1mt[m[1ma[m[1mi[m[1mn[m[1me[m[1md[m
$ ls
Changes META.yml Makefile.PL docs lib t
MANIFEST Makefile blib inc pm_to_blib
$ prove -lv t/01_basic.t
t/01_basic.t ..
ok 1 - use MooseX::Types::DateTime::ButMaintained;[0m
ok 2 - The object isa Moose::Meta::TypeConstraint[0m
ok 3 - The object isa Moose::Meta::TypeConstraint[0m
ok 4 - The object isa Moose::Meta::TypeConstraint[0m
ok 5 - coerced epoch into datetime isa DateTime[0m
ok 6 - epoch is correct[0m
ok 7 - The object isa DateTime[0m
ok 8 - The object isa DateTime[0m
ok 9 - constraint[0m
ok 10 - coerced from seconds isa DateTime::Duration[0m
ok 11 - coerced value[0m
ok 12 - coerced from hash isa DateTime::Duration[0m
ok 13 - constraint[0m
ok 14 - coerced string into time zone object isa DateTime::TimeZone[0m
ok 15 - correct time zone[0m
[31mnot ok 16 - bad time zone[0m
# Failed test 'bad time zone'
# at t/01_basic.t line 89.
ok 17 - coerced from string isa DateTime::Locale::he[0m
ok 18 - bad locale name[0m
ok 19 - maketext handle isa Some::L10N[0m
ok 20 - coerced from maketext isa DateTime::Locale::ja[0m
ok 21 - Instantiated object using export types[0m
1..21[0m
# Looks like you failed 1 test of 21.
[31mDubious, test returned 1 (wstat 256, 0x100)[0m
[31mFailed 1/21 subtests [0m
Test Summary Report
-------------------
[31mt/01_basic.t (Wstat: 256 Tests: 21 Failed: 1)[0m
[31m Failed test: [0m[31m16[0m
[31m Non-zero exit status: 1[0m
Files=1, Tests=21, 2 wallclock secs ( 0.03 usr 0.03 sys + 1.12 cusr 0.05 csys = 1.23 CPU)
Result: FAIL
$ ^D
Error executing your subshell '/bin/ksh': No such file or directory
[4mCPAN Terminal>[24m
Exiting CPANPLUS shell
$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=openbsd, osvers=4.6, archname=i386-openbsd
uname='openbsd'
config_args='-dsE -Dopenbsd_distribution=defined -Dmksymlinks'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include',
optimize='-O2',
cppflags='-fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include'
ccversion='', gccversion='3.3.5 (propolice)', gccosandvers='openbsd4.6'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E '
libpth=/usr/lib
libs=-lm -lutil -lc
perllibs=-lm -lutil -lc
libc=/usr/lib/libc.so.51.0, so=so, useshrplib=true, libperl=libperl.so.11.0
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-R/usr/libdata/perl5/i386-openbsd/5.10.0/CORE'
cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC '
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under OpenBSD
%ENV:
PERL5LIB="/home/zakame/perl5/lib/perl5:/home/zakame/perl5/lib/perl5/i386-openbsd"
PERL_MM_OPT="INSTALL_BASE=/home/zakame/perl5"
@INC:
/home/zakame/perl5/lib/perl5/i386-openbsd
/home/zakame/perl5/lib/perl5
/home/zakame/perl5/lib/perl5/i386-openbsd
/usr/libdata/perl5/i386-openbsd/5.10.0
/usr/local/libdata/perl5/i386-openbsd/5.10.0
/usr/libdata/perl5
/usr/local/libdata/perl5
/usr/local/libdata/perl5/site_perl/i386-openbsd
/usr/libdata/perl5/site_perl/i386-openbsd
/usr/local/libdata/perl5/site_perl
/usr/libdata/perl5/site_perl
.
$ ^D
Script done on Thu Aug 6 15:34:36 2009