Error when running test suite

John Ralls jralls at ceridwen.us
Wed Nov 27 14:31:24 EST 2013


On Nov 27, 2013, at 10:32 AM, Herbert Mühlburger <mail at muehlburger.at> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hi folks,
> 
> I get the following log output when I try to run the test-suits via
> "make check" on my Ubuntu x86_64 using the latest commit
> ("96b258fada3ccf94a87c53c8433c24ca8c55eaae") on the master branch.
> 
> [...]
>  /qof/gnc-date/timespec cmp:                                         OK
>  /qof/gnc-date/timespec diff:                                        OK
>  /qof/gnc-date/timespec abs:                                         **
> ERROR:test-gnc-date.c:466:test_gnc_setlocale: code should not be
> reached OK
>  /qof/gnc-date/timespecCanonicalDayTime:                             OK
>  /qof/gnc-date/date get last mday:                                   OK
>  /qof/gnc-date/qof date format set:                                  OK
>  /qof/gnc-date/qof print date dmy buff:
> FAIL
> GTester: last random seed: R02Sf39a11d28ab3f06b60885612a7ce9193
> /bin/bash: line 1: 30556 Terminated              MALLOC_CHECK_=2
> MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester --verbose test-qof
> make[5]: *** [test-nonrecursive] Error 143
> make[5]: Leaving directory
> `/home/herbert/workspace/gnucash/src/libqof/qof/test'
> make[4]: *** [check-am] Error 2
> make[4]: Leaving directory
> `/home/herbert/workspace/gnucash/src/libqof/qof/test'
> make[3]: *** [check-recursive] Error 1
> make[3]: Leaving directory
> `/home/herbert/workspace/gnucash/src/libqof/qof'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory `/home/herbert/workspace/gnucash/src/libqof'
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory `/home/herbert/workspace/gnucash/src'
> make: *** [check-recursive] Error 1
> 
> Can somebody give me an advice on how I can fix this problem? My
> locale is "de_DE.UTF-8".


The comment ahead of that test function says:
/*
 * There are some differences between distros in the way they name
 * locales, and this can cause trouble with the locale-based
 * formatting. If you get the assert in this function, run locale -a
 * and make sure that en_US, en_GB, and fr_FR are installed and that
 * if a suffix is needed it's in the suffixes array.
 */

The reason is that the test exercises the date functions in those locales to ensure that
the i18n part of the date routines is functioning correctly.

Regards,
John Ralls




More information about the gnucash-devel mailing list