develooper Front page | perl.perl5.porters | Postings from February 2012

Patch to sync version.pm code with CPAN

Thread Next
From:
John Peacock
Date:
February 4, 2012 18:06
Subject:
Patch to sync version.pm code with CPAN
Message ID:
4F2DE40E.2090206@havurah-software.org
I'm just about ready to release version 0.96 to CPAN.  The attached 
patch brings bleadperl into sync with the CPAN release.  The only 
problem with this is that I am getting errors when the revised 
07-locale.t test is executed, but only when run under harness:

$ ./perl harness ../lib/version/t/07locale.t
../lib/version/t/07locale.t .. 1/7 Can't load 
'../lib/auto/Fcntl/Fcntl.so' for module Fcntl: 
../lib/auto/Fcntl/Fcntl.so: undefined symbol: PL_stack_sp at 
../lib/XSLoader.pm line 68.
  at ../lib/Fcntl.pm line 66.
Compilation failed in require at ../lib/POSIX.pm line 17.
BEGIN failed--compilation aborted at ../lib/POSIX.pm line 17.
Compilation failed in require at ../lib/version/t/comma_locale.pl line 7.
BEGIN failed--compilation aborted at ../lib/version/t/comma_locale.pl 
line 7.
# Looks like you planned 7 tests but ran 5.
../lib/version/t/07locale.t .. Dubious, test returned 255 (wstat 65280, 
0xff00)
Failed 2/7 subtests
	(less 4 skipped subtests: 1 okay)


but not when executed directly:

$ ./perl -I ../lib ../lib/version/t/07locale.t
1..7
ok 1 - use version;
# Testing locale handling with da_DK.utf8
ok 2 - Not using locale yet
ok 3 - Using locale: da_DK.utf8
ok 4 - Process locale-dependent floating point
ok 5 - Locale doesn't apply to version objects
ok 6 - Comparison to locale floating point
ok 7 - Handle locale action-at-a-distance

Any ideas why?  I split out the code to locate a comma-decimal locale so 
that additional locale tests could be added later that share that same code.

John

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About