Skip Menu |

This queue is for tickets about the Number-Format CPAN distribution.

Report information
The Basics
Id: 46660
Status: resolved
Priority: 0/
Queue: Number-Format

People
Owner: Nobody in particular
Requestors: francesc.roma [...] gmail.com
Cc:
AdminCc:

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



Subject: test locale.t fails in Number-Format-1.72a
When installing in a shared account on aSmallOrange.com I got the following errors with make test: t/locale.t ........... 1/? # Failed test 'rubles' # at t/locale.t line 44. # got: '123 456.79 RUR ' # expected: '123 456.79 RUB ' # Failed test 'unformat rubles' # at t/locale.t line 45. # got: '12345679' # expected: '123456,79' # Failed test 'unformat Russian 1' # at t/locale.t line 46. # got: '12345679' # expected: '123456,79' # Looks like you failed 3 tests of 12. t/locale.t ........... Dubious, test returned 3 (wstat 768, 0x300) Environment: # perl -v This is perl, v5.8.8 built for x86_64-linux # uname -a Linux brian.asmallorange.com 2.6.9-78.0.22.ELsmp #1 SMP Thu Apr 30 19:17:40 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Please let me know if you need further information Regards Francesc
I'm also seeing this bug: cpan[23]> install Number::Format Running install for module 'Number::Format' Running make for W/WR/WRW/Number-Format-1.72a.tar.gz Fetching with LWP: ftp://cpan.etla.org/pub/CPAN/authors/id/W/WR/WRW/Number-Format-1.72a.tar.gz Fetching with LWP: ftp://cpan.etla.org/pub/CPAN/authors/id/W/WR/WRW/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/W/WR/WRW/Number-Format-1.72a.tar.gz ok Number-Format-1.72/ Number-Format-1.72/Format.pm Number-Format-1.72/t/ Number-Format-1.72/t/format_number.t Number-Format-1.72/t/locale.t Number-Format-1.72/t/unformat_number.t Number-Format-1.72/t/format_negative.t Number-Format-1.72/t/format_price.t Number-Format-1.72/t/format_bytes.t Number-Format-1.72/t/format_picture.t Number-Format-1.72/t/object.t Number-Format-1.72/t/round.t Number-Format-1.72/MANIFEST Number-Format-1.72/TODO Number-Format-1.72/CHANGES Number-Format-1.72/META.yml Number-Format-1.72/README Number-Format-1.72/Makefile.PL CPAN.pm: Going to build W/WR/WRW/Number-Format-1.72a.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Number::Format cp Format.pm blib/lib/Number/Format.pm Manifying blib/man3/Number::Format.3pm WRW/Number-Format-1.72a.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/format_bytes.t ..... ok t/format_negative.t .. ok t/format_number.t .... ok t/format_picture.t ... ok t/format_price.t ..... ok t/locale.t ........... 1/? # Failed test 'rubles' # at t/locale.t line 44. # got: '123 456.79 RUR ' # expected: '123 456.79 RUB ' # Failed test 'unformat rubles' # at t/locale.t line 45. # got: '12345679' # expected: '123456,79' # Failed test 'unformat Russian 1' # at t/locale.t line 46. # got: '12345679' # expected: '123456,79' # Looks like you failed 3 tests of 12. t/locale.t ........... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/12 subtests t/object.t ........... ok t/round.t ............ ok t/unformat_number.t .. ok Test Summary Report ------------------- t/locale.t (Wstat: 768 Tests: 12 Failed: 3) Failed tests: 5-7 Non-zero exit status: 3 Files=9, Tests=154, 1 wallclock secs ( 0.06 usr 0.01 sys + 0.38 cusr 0.07 csys = 0.52 CPU) Result: FAIL Failed 1/9 test programs. 3/154 subtests failed. make: *** [test_dynamic] Error 255 WRW/Number-Format-1.72a.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports WRW/Number-Format-1.72a.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: WRW/Number-Format-1.72a.tar.gz : make_test NO Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.6.9-67.0.7.elsmp, archname=x86_64-linux-thread-multi uname='linux ls20-bc1-14.build.redhat.com 2.6.9-67.0.7.elsmp #1 smp wed feb 27 04:47:23 est 2008 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -m64 -Dversion=5.8.5 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5.8.5 -Dsitelib=/usr/lib/perl5/site_perl/5.8.5 -Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.5 -Darchlib=/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi -Dsitearch=/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi -Darchname=x86_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0' 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=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -g -pipe -m64', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-9)', 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', ldflags ='' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.3.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Jun 5 2008 07:33:01 @INC: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .
From: Justin
I am also getting the same test failure on Mac OS X 10.5.8 using the stock Perl version. Out of all OS X test reports at http://www.cpantesters.org/distro/N/Number-Format.html only one install passed. Install Log ------------------- Running install for module 'Number::Format' Running make for W/WR/WRW/Number-Format-1.72a.tar.gz CPAN: checksum security checks disabled because Digest::SHA not installed. Number-Format-1.72/ Number-Format-1.72/Format.pm Number-Format-1.72/t/ Number-Format-1.72/t/format_number.t Number-Format-1.72/t/locale.t Number-Format-1.72/t/unformat_number.t Number-Format-1.72/t/format_negative.t Number-Format-1.72/t/format_price.t Number-Format-1.72/t/format_bytes.t Number-Format-1.72/t/format_picture.t Number-Format-1.72/t/object.t Number-Format-1.72/t/round.t Number-Format-1.72/MANIFEST Number-Format-1.72/TODO Number-Format-1.72/CHANGES Number-Format-1.72/META.yml Number-Format-1.72/README Number-Format-1.72/Makefile.PL CPAN.pm: Going to build W/WR/WRW/Number-Format-1.72a.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Number::Format cp Format.pm blib/lib/Number/Format.pm Manifying blib/man3/Number::Format.3pm WRW/Number-Format-1.72a.tar.gz /usr/bin/make -j2 -j2 -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/format_bytes.t ..... t/format_bytes.t ..... 1/? t/format_bytes.t ..... ok t/format_negative.t .. t/format_negative.t .. 1/? t/format_negative.t .. ok t/format_number.t .... t/format_number.t .... 1/? t/format_number.t .... ok t/format_picture.t ... t/format_picture.t ... 1/? t/format_picture.t ... ok t/format_price.t ..... t/format_price.t ..... 1/? t/format_price.t ..... ok t/locale.t ........... t/locale.t ........... 1/? # Failed test 'rubles' # at t/locale.t line 44. # got: '123 456,79 RUR ' # expected: '123 456,79 RUB ' # Looks like you failed 1 test of 12. t/locale.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/12 subtests t/object.t ........... t/object.t ........... 1/? t/object.t ........... ok t/round.t ............ t/round.t ............ 1/? t/round.t ............ ok t/unformat_number.t .. t/unformat_number.t .. 1/? t/unformat_number.t .. ok Test Summary Report ------------------- t/locale.t (Wstat: 256 Tests: 12 Failed: 1) Failed test: 5 Non-zero exit status: 1 Files=9, Tests=154, 1 wallclock secs ( 0.06 usr 0.03 sys + 0.37 cusr 0.09 csys = 0.55 CPU) Result: FAIL Failed 1/9 test programs. 1/154 subtests failed. make: *** [test_dynamic] Error 255 WRW/Number-Format-1.72a.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports WRW/Number-Format-1.72a.tar.gz Running make install make test had returned bad status, won't install without force
From: phair.kevin [...] gmail.com
On Thu Jun 04 04:21:51 2009, frif wrote: Show quoted text
> When installing in a shared account on aSmallOrange.com I got the > following errors with make test: > > t/locale.t ........... 1/? > # Failed test 'rubles' > # at t/locale.t line 44. > # got: '123 456.79 RUR ' > # expected: '123 456.79 RUB '
'RUR' used to be the ISO 4217 code for the ruble. It is now 'RUB'. FreeBSD 6.2 has the older version, though by 7.0 at the latest it was changed to 'RUB'. The following tiny patch to locale.t allows the test to pass for either code. @@ -41,7 +41,7 @@ my $dec = $russian->{mon_decimal_point}; my $num = "123${sep}456${dec}79"; - is($russian->format_price(123456.789), "$num RUB ", "rubles"); + like($russian->format_price(123456.789), qr/$num RU[RB] /, "rubles"); is($russian->unformat_number("$num RUB "), 123456.79, "unformat rubles"); is($russian->unformat_number($num), 123456.79, "unformat Russian 1"); $num = "123${sep}456$russian->{decimal_point}79";
Fixed in release 1.73