Skip Menu |

This queue is for tickets about the Test-Benchmark CPAN distribution.

Report information
The Basics
Id: 78290
Status: open
Priority: 0/
Queue: Test-Benchmark

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: Test failures for Test-Benchmark-0.004 on x86_64 architecture
Hi, Tests failed when I tried installing on 64 bit Ubuntu 12.04: PERL_DL_NONLAZY=1 /opt/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/test.t .. 13/36 # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' compare actual_ok' # at t/test.t line 60. # got: '0' # expected: '1' # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' compare diag' # at t/test.t line 60. # Got diag (141 bytes): # 'code1 was not faster than code 2' # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' # Expected diag (0 bytes): # t/test.t .. 24/36 # Looks like you failed 2 tests of 36. t/test.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/36 subtests Test Summary Report ------------------- t/test.t (Wstat: 512 Tests: 36 Failed: 2) Failed tests: 20, 23 Non-zero exit status: 2 Files=1, Tests=36, 18 wallclock secs ( 0.02 usr 0.00 sys + 17.88 cusr 0.49 csys = 18.39 CPU) Result: FAIL Failed 1/1 test programs. 2/36 subtests failed. make: *** [test_dynamic] Error 2 Judging by the test matrix on CPANTS (http://www.cpantesters.org/distro/T/Test-Benchmark.html#Test-Benchmark-0.004). It does seem that this module has problems getting installed on 64 bit intel architectures. Thanks. Dist: Test-Benchmark-0.004 Perl: v5.14.2 OS: Linux ubuntu 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
It looks like modern systems are so fast the difference between calculating the factorial of 10 and the factorial of 20 even a thousand times still rounds the time it takes for both down to zero, so the test can't tell if the calculation of factorial 20 was actually slower. When I set the number of times to 10000 (on line 56 in t/test.t) it passes.
On Tue Jul 10 06:14:22 2012, http://j1n3l0.myopenid.com/ wrote: Show quoted text
> Hi, > > Tests failed when I tried installing on 64 bit Ubuntu 12.04: > > PERL_DL_NONLAZY=1 /opt/perlbrew/perls/perl-5.14.2/bin/perl > "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', > 'blib/arch')" t/*.t > t/test.t .. 13/36 > # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' > compare actual_ok' > # at t/test.t line 60. > # got: '0' > # expected: '1' > > # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' > compare diag' > # at t/test.t line 60. > # Got diag (141 bytes): > # 'code1 was not faster than code 2' > # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' > # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' > # Expected diag (0 bytes): > # > t/test.t .. 24/36 # Looks like you failed 2 tests of 36. > t/test.t .. Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/36 subtests > > Test Summary Report > ------------------- > t/test.t (Wstat: 512 Tests: 36 Failed: 2) > Failed tests: 20, 23 > Non-zero exit status: 2 > Files=1, Tests=36, 18 wallclock secs ( 0.02 usr 0.00 sys + 17.88 cusr > 0.49 csys = 18.39 CPU) > Result: FAIL > Failed 1/1 test programs. 2/36 subtests failed. > make: *** [test_dynamic] Error 2 > > Judging by the test matrix on CPANTS > (http://www.cpantesters.org/distro/T/Test-Benchmark.html#Test- > Benchmark-0.004). > It does seem that this module has problems getting installed on 64 bit > intel architectures. > > Thanks. > > Dist: Test-Benchmark-0.004 > Perl: v5.14.2 > OS: Linux ubuntu 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 > UTC > 2012 x86_64 x86_64 x86_64 GNU/Linux
I, too, encountered this problem when attempting to install Test::Benchmark via 'cpanm' today. I am going to see if we can get this worked on at the upcoming New York City Perl Hackathon: https://github.com/nyperlmongers/nyperlhackathon2015/wiki/Test-Benchmark:--Adapt-tests-to-modern-architectures Thank you very much. Jim Keenan
Subject: Re: [rt.cpan.org #78290] Test failures for Test-Benchmark-0.004 on x86_64 architecture
Date: Sun, 5 Apr 2015 22:30:53 +0900
To: bug-Test-Benchmark [...] rt.cpan.org
From: Fergal Daly <fergald [...] gmail.com>
On Sun, Apr 5, 2015 at 10:28 PM, James E Keenan via RT < bug-Test-Benchmark@rt.cpan.org> wrote: Show quoted text
> Queue: Test-Benchmark > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=78290 > > > On Tue Jul 10 06:14:22 2012, http://j1n3l0.myopenid.com/ wrote:
> > Hi, > > > > Tests failed when I tried installing on 64 bit Ubuntu 12.04: > > > > PERL_DL_NONLAZY=1 /opt/perlbrew/perls/perl-5.14.2/bin/perl > > "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', > > 'blib/arch')" t/*.t > > t/test.t .. 13/36 > > # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' > > compare actual_ok' > > # at t/test.t line 60. > > # got: '0' > > # expected: '1' > > > > # Failed test 'subtest '10 faster than 20 num' of '10 faster than 20' > > compare diag' > > # at t/test.t line 60. > > # Got diag (141 bytes): > > # 'code1 was not faster than code 2' > > # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' > > # ' 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)' > > # Expected diag (0 bytes): > > # > > t/test.t .. 24/36 # Looks like you failed 2 tests of 36. > > t/test.t .. Dubious, test returned 2 (wstat 512, 0x200) > > Failed 2/36 subtests > > > > Test Summary Report > > ------------------- > > t/test.t (Wstat: 512 Tests: 36 Failed: 2) > > Failed tests: 20, 23 > > Non-zero exit status: 2 > > Files=1, Tests=36, 18 wallclock secs ( 0.02 usr 0.00 sys + 17.88 cusr > > 0.49 csys = 18.39 CPU) > > Result: FAIL > > Failed 1/1 test programs. 2/36 subtests failed. > > make: *** [test_dynamic] Error 2 > > > > Judging by the test matrix on CPANTS > > (http://www.cpantesters.org/distro/T/Test-Benchmark.html#Test- > > Benchmark-0.004). > > It does seem that this module has problems getting installed on 64 bit > > intel architectures. > > > > Thanks. > > > > Dist: Test-Benchmark-0.004 > > Perl: v5.14.2 > > OS: Linux ubuntu 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 > > UTC > > 2012 x86_64 x86_64 x86_64 GNU/Linux
> > I, too, encountered this problem when attempting to install > Test::Benchmark via 'cpanm' today. > > I am going to see if we can get this worked on at the upcoming New York > City Perl Hackathon: > > > https://github.com/nyperlmongers/nyperlhackathon2015/wiki/Test-Benchmark:--Adapt-tests-to-modern-architectures
I had pretty much forgotten about this module. If anyone wants to take it over (this will be the first change in > 9 yrs!) let me know, F Show quoted text
> > Thank you very much. > Jim Keenan > >