Subject: | version.pm fails to test under 5.6.2 in pure perl mode |
As per our discussion on P5P:
Date: Fri, 26 Jan 2007 20:42:55 -0500
From: John Peacock <jpeacock@rowman.com>
To: Jos Boumans <kane@dwim.org>
CC: perl5-porters@perl.org
Subject: Re: Version.pm 0.69 overloading incomplete
Jos Boumans wrote:
Show quoted text
> Unfortunately, they fail tests under 5.6.2 quite heavily [1].
> The XS version passes all tests under 5.6.2 though.
Show quoted text> [1] Test failure under 5.6.2, Mac OS X:
> [kane@rimmer ~...build/version-0.69]$ perl5.6.2 Makefile.PL --perl_only
> Checking if your kit is complete...
> Looks good
> Writing Makefile for version
Interestingly enough, I can't even get the Makefile to build (EU::MM emits
nothing and I get an "Attempt to free unreferenced scalar" error from 5.6.2.
Can you open an RT in the version queue and append your 'perl5.6.2 -V' to the
ticket so I can try and recreate?
Show quoted text> [kane@rimmer ~...build/version-0.69]$ make test
> cp lib/version.pm blib/lib/version.pm
> cp lib/version.pod blib/lib/version.pod
> cp vperl/vpp.pm blib/lib/version/vpp.pm
> PERL_DL_NONLAZY=1 /usr/local/bin/perl5.6.2 "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/01base.......Argument "version::vpp" isn't numeric in subroutine entry
> at /opt/5.6.2/lib/perl5/5.6.2/darwin/POSIX.pm line 38.
> t/01base.......NOK 120# Failed test (t/coretests.pm at line 396)
> # 'www version 8.000 (v8.0.0) required--this is only
> version 0.000004 (v0.0.4) at
> /Users/kane/.cpanplus/5.6.2/build/version-0.69/blib/lib/version/vpp.pm
> line 441.
> # BEGIN failed--compilation aborted at (eval 40) line 1.
> # '
> # doesn't match '(?-xism:^www version 0.000008 \(v0.0.8\) required)'
> t/01base.......ok 129/0# Looks like you failed 1 tests of 132.
> t/01base.......dubious
> Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 120
> Failed 1/132 tests, 99.24% okay (less 4 skipped tests: 127 okay,
> 96.21%)
> t/02derived....Argument "version::vpp" isn't numeric in subroutine entry
> at /opt/5.6.2/lib/perl5/5.6.2/darwin/POSIX.pm line 38.
> t/02derived....ok 91/0# Failed test (t/coretests.pm at line 396)
> t/02derived....ok 92/0# 'www version 8.000 (v8.0.0)
> required--this is only version 0.000004 (v0.0.4) at
> /Users/kane/.cpanplus/5.6.2/build/version-0.69/blib/lib/version/vpp.pm
> line 441.
> # BEGIN failed--compilation aborted at (eval 40) line 1.
> # '
> # doesn't match '(?-xism:^www version 0.000008 \(v0.0.8\) required)'
> t/02derived....ok 139/0# Looks like you failed 1 tests of 142.
> t/02derived....dubious
> Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 126
> Failed 1/142 tests, 99.30% okay (less 4 skipped tests: 137 okay,
> 96.48%)
> t/03require....Argument "version::vpp" isn't numeric in subroutine entry
> at /opt/5.6.2/lib/perl5/5.6.2/darwin/POSIX.pm line 38.
> # Failed test (t/coretests.pm at line 396)
> # 'www version 8.000 (v8.0.0) required--this is only
> version 0.000004 (v0.0.4) at
> /Users/kane/.cpanplus/5.6.2/build/version-0.69/blib/lib/version/vpp.pm
> line 441.
> # BEGIN failed--compilation aborted at (eval 38) line 1.
> # '
> # doesn't match '(?-xism:^www version 0.000008 \(v0.0.8\) required)'
> t/03require....ok 15/0# Looks like you failed 1 tests of 132.
> t/03require....dubious
> Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 121
> Failed 1/132 tests, 99.24% okay (less 7 skipped tests: 124 okay,
> 93.94%)
> Failed Test Stat Wstat Total Fail Failed List of Failed
>
------------------------------------------------------------------------------
-
Show quoted text> t/01base.t 1 256 132 1 0.76% 120
> t/02derived.t 1 256 142 1 0.70% 126
> t/03require.t 1 256 132 1 0.76% 121
> 15 subtests skipped.
> Failed 3/3 test scripts, 0.00% okay. 3/406 subtests failed, 99.26% okay.
> make: *** [test_dynamic] Error 2
I also don't get those failures if I test using the Build.PL, so I'm at a loss.
Are you using a UTF-8 shell, by any chance? I am seeing the POSIX warnings,
though, which are due to a conflict between Test::More and POSIX both having
AUTOLOAD sub's (and I don't know how to resolve that).