Fix test?

Mike Alexander mta at umich.edu
Wed May 17 13:56:16 EDT 2006


--On May 15, 2006 2:36:00 AM -0400 Mike Alexander <mta at umich.edu> wrote:

> --On May 13, 2006 9:34:24 PM -0600 Chris Lyttle <chris at wilddev.net>
> wrote:
>
>> Hi dev's
>>
>> Is anyone working on fixing the following test so we can release
>> 1.9.6?
>>
>> Chris
>>
>>
>> ** CRITICAL **: Error: xaccSplitComputeCapGains(): Malformed Lot "Lot
>> 45"! (too thin!) opening amt=-32139756059553/100 split
>> amt=5269956366770822423/100 baln=5269924227014762870/100
>> aborting...
>
> I've attached a patch that seems to fix the errors found by
> test-period when automatic lot scrubbing is enabled.  Even though it
> is no longer enabled, these bugs should probably be fixed.  I think
> the patch is ok, but others who know more about the internals of the
> GnuCash engine should take a look at it.
>
> With these patches I get only one error when running test-period with
> parameters from 10 to 299.  At 207 it gets an "xaccSplitSetValue():
> numeric error in converting the split value's denominator" error, but
> that's because the test code generates a value that is too big to
> represent with the chosen denominator of 1000000.

I put this in bugzilla as bug 342153 so it won't get lost.

-- 
Mike Alexander           mta at umich.edu
Ann Arbor, MI            PGP key ID: BEA343A6



More information about the gnucash-devel mailing list