r15474 - gnucash/trunk/src/engine/test - Do not intentionally divide by zero in test-numeric

Andreas Köhler andi5 at cvs.gnucash.org
Tue Jan 30 20:35:27 EST 2007


Author: andi5
Date: 2007-01-30 20:35:25 -0500 (Tue, 30 Jan 2007)
New Revision: 15474
Trac: http://svn.gnucash.org/trac/changeset/15474

Modified:
   gnucash/trunk/src/engine/test/test-numeric.c
Log:
Do not intentionally divide by zero in test-numeric

Random numbers are 0 sometimes, especially on systems with smaller
RAND_MAX. Do not use it as divisor and repeat the run when we hit one.




More information about the gnucash-patches mailing list