[libmath-prime-util-perl] 46/50: Skip the AKS tests on 32-bit machines. They're way too slow in PP.

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:45:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.13
in repository libmath-prime-util-perl.

commit cbdd225b3e6f32d64ed6322e3fca7f777fc5f798
Author: Dana Jacobsen <dana at acm.org>
Date:   Sun Nov 18 02:40:59 2012 -0800

    Skip the AKS tests on 32-bit machines.  They're way too slow in PP.
---
 t/10-isprime.t | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/t/10-isprime.t b/t/10-isprime.t
index cdddc9c..768bf58 100644
--- a/t/10-isprime.t
+++ b/t/10-isprime.t
@@ -121,7 +121,10 @@ SKIP: {
 
 # Simple AKS
 is( is_aks_prime(877), 1, "is_aks_prime(877) is true" );
-# The first number that makes it past the sqrt test to actually run.
-is( is_aks_prime(69197), 1, "is_aks_prime(69197) is true" );
-# A composite
-is( is_aks_prime(1262952907), 0, "is_aks_prime(1262952907) is false" );
+SKIP: {
+  skip "Skipping is_aks_prime tests on 32-bit Perl", 2 if !$use64;
+  # The first number that makes it past the sqrt test to actually run.
+  is( is_aks_prime(69197), 1, "is_aks_prime(69197) is true" );
+  # A composite (product of two 5-digit primes)
+  is( is_aks_prime(1262952907), 0, "is_aks_prime(1262952907) is false" );
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git



More information about the Pkg-perl-cvs-commits mailing list