r23416 Breaks Report Tests

Peter Broadbery p.broadbery at gmail.com
Mon Nov 25 17:57:26 EST 2013


Having originally wrote the tests, I've had a look at this, but not
been able to replicate it - running Ubuntu 13.04.  It would help to
see exactly what html is generated for a report in an environment
where the test does not work (plus the full stack traces).

The chances are that the test code is failing to match the report to
the expected text.  I suspect the easiest fix is to force the locale
to "C" within the test, but I'm none too familiar with locales.

Peter

On Sun, Nov 24, 2013 at 9:02 PM, John Ralls <jralls at ceridwen.us> wrote:
> Very strange. The change adds a single line which calls setlocale(LC_ALL, “”) in main.scm. Three tests fail, test-standard-category-report, test-standard-net-barchart, and test-standard-net-linechart. The top of the backtrace is almost the same in all three,
>
> In ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:
>  281: 11      [list-ref ...
>  281: 12*      [list-ref () {0}]
>
> ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:281:13: In procedure list-ref in expression (list-ref tbl row-index):
> ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:281:13: Argument 2 out of range: 0
>
> in the first or
>
> In ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:
>  284:  9    [string->number ...
>  284: 10*    [car ...
>  284: 11*     [tbl-ref () {0} 1]
>  281: 12      [list-ref ...
>  281: 13*      [list-ref () {0}]
>
> ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:281:13: In procedure list-ref in expression (list-ref tbl row-index):
> ../../../../src/report/report-system/test/gnucash/report/report-system/test/test-extras.scm:281:13: Argument 2 out of range: 0
>
> in the latter two.
>
> Regards,
> John Ralls
>
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list