[Ecm-commits] r2594 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Tue Feb 10 09:01:40 CET 2015


Author: zimmerma
Date: 2015-02-10 09:01:40 +0100 (Tue, 10 Feb 2015)
New Revision: 2594

Modified:
   trunk/resume.c
   trunk/test.ecm
   trunk/test.pp1
Log:
more coverage


Modified: trunk/resume.c
===================================================================
--- trunk/resume.c	2015-02-09 10:37:29 UTC (rev 2593)
+++ trunk/resume.c	2015-02-10 08:01:40 UTC (rev 2594)
@@ -731,7 +731,7 @@
   if (mpz_cmp_d (tmp, B1) > 0 || mpz_cmp_d (tmp2, B1) <= 0)
     {
       fprintf (stderr, "Error, the value of the batch product in %s "
-               "does not corresponds to B1=%1.0f.\n", fn, B1);
+               "does not correspond to B1=%1.0f.\n", fn, B1);
       return 1;
     }
 
@@ -741,7 +741,7 @@
   if (mpz_divisible_p (s, tmp2))
     {
       fprintf (stderr, "Error, the value of the batch product in %s "
-               "does not corresponds to B1=%1.0f.\n", fn, B1);
+               "does not correspond to B1=%1.0f.\n", fn, B1);
       return 1;
     }
 
@@ -752,7 +752,7 @@
   if (!mpz_divisible_p (s, tmp2) || mpz_divisible_p (s, tmp))
     {
       fprintf (stderr, "Error, the value of the batch product in %s "
-               "does not corresponds to B1=%1.0f.\n", fn, B1);
+               "does not correspond to B1=%1.0f.\n", fn, B1);
       return 1;
     }
 

Modified: trunk/test.ecm
===================================================================
--- trunk/test.ecm	2015-02-09 10:37:29 UTC (rev 2593)
+++ trunk/test.ecm	2015-02-10 08:01:40 UTC (rev 2594)
@@ -166,6 +166,13 @@
 
 echo 17061648125571273329563156588435816942778260706938821014533 | $ECM -param 0 -sigma 585928442 174000; checkcode $? 14
 
+# test -save/-resume
+echo 17061648125571273329563156588435816942778260706938821014533 | $ECM -save test.ecm.save -param 0 -sigma 585928442 174000 0
+$ECM -resume test.ecm.save 174000 85880350
+C=$?
+/bin/rm -f test.ecm.save
+checkcode $C 14
+
 echo 89101594496537524661600025466303491594098940711325290746374420963129505171895306244425914080753573576861992127359576789001 | $ECM -param 0 -sigma 877655087 -go 325001 157721 1032299; checkcode $? 14
 
 echo 5394204444759808120647321820789847518754252780933425517607611172590240019087317088600360602042567541009369753816111824690753627535877960715703346991252857 | $ECM -param 0 -sigma 805816989 -go 345551 149827; checkcode $? 6

Modified: trunk/test.pp1
===================================================================
--- trunk/test.pp1	2015-02-09 10:37:29 UTC (rev 2593)
+++ trunk/test.pp1	2015-02-10 08:01:40 UTC (rev 2594)
@@ -100,6 +100,13 @@
 echo 2277189375098448170118558775447117254551111605543304035536750762506158547102293199086726265869065639109 | $PP1 -x0 3 2337233 132554351
 checkcode $? 14
 
+# test -save/-resume
+echo 2277189375098448170118558775447117254551111605543304035536750762506158547102293199086726265869065639109 | $PP1 -x0 3 -save test.pp1.save 2337233 0
+$PP1 -resume test.pp1.save 2337233 132554351
+C=$?
+/bin/rm -f test.pp1.save
+checkcode $C 14
+
 # bug in ecm-5.0 (overflow in fin_diff_coeff)
 echo 630503947831861669 | $PP1 -x0 5 7 9007199254740000-9007199254741000; checkcode $? 8
 



More information about the Ecm-commits mailing list