On 30 May 2005, at 22:23, chromatic wrote:
[snip]
I'd love to have feedback before I release it to the CPAN in a week or
so.
[snip]
Getting some test failures on vanilla OS X 10.4.1 (see below). Not  
got time to dig into causes at the moment.
Looks nice though. Like the roles stuff.

Adrian


% ./Build test verbose=1
t/base........1..35
ok 1 - use Module::Build::TestReporter;
ok 2 - Module::Build::TestReporter->can('new')
ok 3 - The object isa Module::Build
ok 4 - The object isa Module::Build::TestReporter
ok 5 - new() should set report_file to test_failures.txt by default
ok 6 - ... but should set if it passed
ok 7 - Module::Build::TestReporter->can('ACTION_test')
ok 8 - ACTION_test() should not write to selected fh
ok 9 - ... calling SUPER with args
ok 10 - ... and should restore selected fh
ok 11 - Module::Build::TestReporter->can('find_test_files')
ok 12 - find_test_files() should return empty arrayref
ok 13 - ... writing no output by default
ok 14 - ... reporting failures
ok 15 - ... having cleared out any existing failures
#     Failed test (t/base.t at line 95)
#     Structures begin differing at:
# $got->{failures}[0]{diagnostics} = ' Failed test (fake_tests/fail.t at line 9)
#              got: 'foo'
#         expected: 'bar'
#     '
#     $expected->{failures}[0]{diagnostics} = '
#         Failed test (fake_tests/fail.t at line 9)
#              got: 'foo'
#         expected: 'bar'
#     '
ok 16 - ... writing no output by default
ok 17 - ... yet still reporting failures
ok 18 - Module::Build::TestReporter->can('save_failure_details')
ok 19 - save_failure_details() should save results of all failures
not ok 20 - ... saving failure information
ok 21 - Module::Build::TestReporter->can('report_failures')
ok 22 - report_failures() should report success with no failures
ok 23 - report_failures() should write a full report for all failed tests
ok 24 - ... with test failure information
ok 25 - ... and the full -V information of this perl
ok 26 - ... and a failure report
ok 27 - ... with failure details
ok 28 - Module::Build::TestReporter->can('write_report')
ok 29 - write_report() should write its report
ok 30 - ... from the report passed
ok 31 - ... throwing an exception if it cannot write test data
ok 32 - Module::Build::TestReporter->can('write_failure_results')
ok 33 - write_failure_results() should only warn of failure without contact
ok 34 - ... or giving e-mail directions with a contact
ok 35 - ... adding the report in verbose mode
# Looks like you failed 1 tests of 35.
dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 20
        Failed 1/35 tests, 97.14% okay
t/inherit.....1..10
ok 1 - use Module::Build::TestReporter;
ok 2 - The object isa My::Build
ok 3 - The object isa Module::Build
ok 4 - role application should work
ok 5 - My::Build->can('new')
ok 6 - My::Build->can('ACTION_test')
ok 7 - My::Build->can('find_test_files')
ok 8 - My::Build->can('save_failure_details')
ok 9 - My::Build->can('report_failures')
ok 10 - My::Build->can('write_report')
ok
t/override....ok 1 - use Module::Build::TestReporter;
1..1
ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ -------
t/base.t       1   256    35    1   2.86%  20
Failed 1/3 test scripts, 66.67% okay. 1/46 subtests failed, 97.83% okay.

% 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 b28.apple.com 8.0 darwin kernel version 7.5.0: thu mar 3 18:48:46 pst 2005; root:xnuxnu-517.99.13.obj~1release_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='-Os',
cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no- cpp-precomp -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1809)', 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='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
  Built under darwin
  Compiled at Mar 20 2005 16:34:19
  @INC:
    /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
    .

Reply via email to