[GNC-dev] Test failure on current master branch

Geert Janssens geert.gnucash at kobaltwit.be
Thu Mar 2 08:39:44 EST 2023


I still haven't figured out exactly where it goes wrong, but I did discover it's a locale related 
issue. For some reason this particular test has become locale sensitive.

If I run the test as follows:
LC_ALL=C ctest -V -R test-gnc-option-scheme-output

it passes. If however I do this:
LC_ALL=fr_FR.utf8 ctest -V -R test-gnc-option-scheme-output

it fails. I have also tried nl_BE.utf8 (my native locale), which fails as well.
I suspect the call to (string->number (GncOption-serialize option)) on line 459 is failing. 
Perhaps GncOption-serialize spits out numbers in C locale while string->number uses local 
locale or vice versa ?

Regards,

Geert

Op woensdag 1 maart 2023 04:41:14 CET schreef John Ralls:
> Geert,
> 
> I can't replicate that, tried on Debian 10, Debian Unstable, and Arch. I'm
> installing a Fedora 37 VM but I'm out of time for today and won't get to
> the point of a test build of GnuCash.
> 
> Regards,
> John Ralls
> 
> > On Feb 28, 2023, at 2:07 PM, Geert Janssens <geert.gnucash at kobaltwit.be>
> > wrote:
> > 
> > Hi,
> > 
> > With the current master branch I get the following test failure:
> > 
> > ctest --rerun-failed --output-on-failure
> > Test project /home/janssege/Development/gnucash/master/build
> > 
> >   Start 120: test-gnc-option-scheme-output
> > 
> > 1/1 Test #120: test-gnc-option-scheme-output ....***Failed    0.22 sec
> > gnc:make-string-option is deprecated. Make and register the option in one
> > command with gnc-register-string-option.
> > gnc:register-option is deprecated. Use gnc-register-foo-option instead.
> > gnc:option-set-value and indeed all direct option access is deprecated.
> > Use gnc-set-option instead.
> > gnc:make-font-option is deprecated. Make and register the option in one
> > command with gnc-register-font-option.
> > gnc:make-currency-option is deprecated. Make and register the option in
> > one command with gnc-register-currency-option.
> > gnc:make-budget-option is deprecated. Make and register the option in one
> > command with gnc-register-color-option.
> > gnc:option-set-default-value and indeed all direct option access is
> > deprecated. Use gnc-set- option instead.
> > gnc:make-commodity-option is deprecated. Make and register the option in
> > one command with gnc-register-commodity-option.
> > gnc:make-simple-boolean-option is deprecated. Make and register the option
> > in one command with gnc-register-simple-boolean-option.
> > gnc:make-pixmap-option is deprecated. Make and register the option in one
> > command with gnc-register-pixmap-option.
> > gnc:make-account-list-option is deprecated. Make and register the option
> > in one command with gnc-register-account-list-option.
> > gnc:make-multichoice-option is deprecated. Make and register the option in
> > one command with gnc-register-multichoice-option.
> > gnc:make-list-option is deprecated. Make and register the option in one
> > command with gnc- register-list-option.
> > gnc:make-number-range-option is deprecated. Make and register the option
> > in one command with gnc-register-number-range-option.
> > 
> > FORMAT: error with call: (format #f "'~f<===" ===>#f )
> > 
> >       argument is not a number or a number string


More information about the gnucash-devel mailing list