Skip Menu |

This queue is for tickets about the Math-BigInt-GMP CPAN distribution.

Report information
The Basics
Id: 120718
Status: resolved
Priority: 0/
Queue: Math-BigInt-GMP

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

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



Subject: Fails tests when no "." in @INC
Can't locate t/bigintpm.inc in @INC (@INC contains: /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at t/bigintpm.t line 81.
Show quoted text
# Looks like your test exited with 2 just after 20.
t/bigintpm.t ..................................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 3913/3933 subtests
t/bigintg.t ................................... ok
t/mbi-from-big-scalar.t ....................... ok
t/threads.t ................................... skipped: Perl compiled without ithreads
Can't locate t/bigfltpm.inc in @INC (@INC contains: /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at t/bigfltpm.t line 75.
Show quoted text
# Looks like your test exited with 2 just after 19.
t/bigfltpm.t ..................................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2436/2455 subtests
    (less 1 skipped subtest: 18 okay)
t/storable.t .................................. ok
Can't locate t/mbimbf.inc in @INC (@INC contains: /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/lib /home/kent/.cpanm/work/1490276407.21542/Math-BigInt-GMP-1.6004/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at t/mbimbf.t line 18.
Show quoted text
# Looks like your test exited with 2 before it could output anything.
t/mbimbf.t ....................................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 738/738 subtests
t/bigroot.t ................................... ok
t/mbi_rand.t .................................. ok
t/biglog.t .................................... ok

Test Summary Report
-------------------
t/bigintpm.t                                (Wstat: 512 Tests: 20 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 3933 tests but ran 20.
t/bigfltpm.t                                (Wstat: 512 Tests: 19 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 2455 tests but ran 19.
t/mbimbf.t                                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 738 tests but ran 0.
Files=71, Tests=1005,  2 wallclock secs ( 0.33 usr  0.15 sys +  6.33 cusr  1.14 csys =  7.95 CPU)
Result: FAIL
Failed 3/71 test programs. 0/1005 subtests failed.



-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
I'd have submitted a PR to https://github.com/pjacklam/Math-BigInt-GMP , but its grossly out of date.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Subject: 0001-Fix-test-failures-without-.-in-INC.patch
From 74cf47cac322f4399cea78bf7cdb75769578c035 Mon Sep 17 00:00:00 2001 From: Kent Fredric <kentnl@gentoo.org> Date: Mon, 30 Oct 2017 21:42:48 +1300 Subject: Fix test failures without '.' in @INC Under PERL_USE_UNSAFE_INC=0 Bug: https://bugs.gentoo.org/613642 Bug: https://rt.cpan.org/Ticket/Display.html?id=120718 --- t/bigfltpm.t | 2 +- t/bigintpm.t | 2 +- t/mbimbf.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/bigfltpm.t b/t/bigfltpm.t index 49c3744..30f2d84 100644 --- a/t/bigfltpm.t +++ b/t/bigfltpm.t @@ -72,4 +72,4 @@ SKIP: { is(ref($e->{_e}->[0]), '', '$e->{_e}->[0] is a scalar'); } -require 't/bigfltpm.inc'; # all tests here for sharing +require './t/bigfltpm.inc'; # all tests here for sharing diff --git a/t/bigintpm.t b/t/bigintpm.t index 8351bc6..a82476f 100644 --- a/t/bigintpm.t +++ b/t/bigintpm.t @@ -78,4 +78,4 @@ is($x, "9903520314281112085086151826", ############################################################################# # all the other tests -require 't/bigintpm.inc'; # all tests here for sharing +require './t/bigintpm.inc'; # all tests here for sharing diff --git a/t/mbimbf.t b/t/mbimbf.t index 668508e..6b4194e 100644 --- a/t/mbimbf.t +++ b/t/mbimbf.t @@ -15,7 +15,7 @@ use Math::BigFloat; our $mbi = 'Math::BigInt'; our $mbf = 'Math::BigFloat'; -require 't/mbimbf.inc'; +require './t/mbimbf.inc'; # some tests that won't work with subclasses, since the things are only # guaranteed in the Math::Big(Int|Float) (unless subclass chooses to support -- 2.14.3