Source directory restructuring complete

Geert Janssens geert.gnucash at kobaltwit.be
Tue Aug 15 17:12:06 EDT 2017


On dinsdag 15 augustus 2017 21:13:00 CEST Eric Theise wrote:
> Contents of libgnucash/engine/test/test-qof.log:
> 
> /qof/qofbook/readonly: OK
> /qof/qofbook/validate counter: OK
> /qof/qofbook/get string option: OK
> /qof/qofbook/set string option: OK
> /qof/qofbook/session not saved: OK
> /qof/qofbook/session mark saved: OK
> /qof/qofbook/get counter:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter()] No
> book!!!
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter()]
> Invalid counter name.
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter()]
> Invalid counter name. OK
> /qof/qofbook/get counter format:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter_format()]
> No book!!!
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter_format()]
> Invalid counter name.
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_get_counter_format()]
> Invalid counter name. OK
> /qof/qofbook/increment and format counter:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **:
> [qof_book_increment_and_format_counter()] No book!!!
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **:
> [qof_book_increment_and_format_counter()] Invalid counter name.
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **:
> [qof_book_increment_and_format_counter()] Invalid counter name.
> OK
> /qof/qofbook/use trading accounts: OK
> /qof/qofbook/use book-currency: OK
> /qof/qofbook/get autofreeze days: OK
> /qof/qofbook/use split action for num field: OK
> /qof/qofbook/mark session dirty: OK
> /qof/qofbook/session dirty time: OK
> /qof/qofbook/set dirty callback:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): qof.engine-WARNING **: [qof_book_set_dirty_cb()]
> Already existing callback 0x414350, will be overwritten by (nil)
> 
> OK
> /qof/qofbook/shutting down: OK
> /qof/qofbook/set get data: OK
> /qof/qofbook/get collection: OK
> /qof/qofbook/foreach collection:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: void
> qof_book_foreach_collection(const QofBook*, QofCollectionForeachCB,
> gpointer): assertion 'book' failed
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: void
> qof_book_foreach_collection(const QofBook*, QofCollectionForeachCB,
> gpointer): assertion 'cb' failed
> OK
> /qof/qofbook/set data finalizers: OK
> /qof/qofbook/mark closed: OK
> /qof/qofbook/book new and destroy: OK
> /qof/qofinstance/set get book: OK
> /qof/qofinstance/set get guid: OK
> /qof/qofinstance/instance new and destroy:
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: QofCollection*
> qof_instance_get_collection(gconstpointer): assertion
> 'QOF_IS_INSTANCE(ptr)' failed
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: gint
> qof_instance_get_editlevel(gconstpointer): assertion 'QOF_IS_INSTANCE(ptr)'
> failed
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: gboolean
> qof_instance_get_destroying(gconstpointer): assertion
> 'QOF_IS_INSTANCE(ptr)' failed
> 
> (/home/erictheise/Repos/erictheise/gnucash/build/libgnucash/engine/test/.lib
> s/lt-test-qof:11950): gnc.engine-CRITICAL **: gboolean
> qof_instance_get_dirty_flag(gconstpointer): assertion
> 'QOF_IS_INSTANCE(ptr)' failed
> OK
> /qof/qofinstance/init data: OK
> /qof/qofinstance/get set slots: OK
> /qof/qofinstance/version compare: OK
> /qof/qofinstance/get set dirty: OK
> /qof/qofinstance/display name: OK
> /qof/qofinstance/begin edit: OK
> /qof/qofinstance/commit edit: OK
> /qof/qofinstance/commit edit part 2: OK
> /qof/qofinstance/instance refers to object: OK
> /qof/qofinstance/instance get referring object list from collection: OK
> /qof/qofinstance/instance get typed referring object list: OK
> /qof/qofinstance/instance get referring object list: OK
> /qof/qofobject/qof object register: OK
> /qof/qofobject/qof object lookup: OK
> /qof/qofobject/qof object get type label: OK
> /qof/qofobject/qof object printable: OK
> /qof/qofobject/qof object book begin: OK
> /qof/qofobject/qof object book end: OK
> /qof/qofobject/qof object is dirty: OK
> /qof/qofobject/qof object mark clean: OK
> /qof/qofobject/qof object new instance: OK
> /qof/qofobject/qof object compliance: OK
> /qof/qofobject/qof object foreach type: OK
> /qof/qofobject/qof object foreach: OK
> /qof/qofobject/qof object foreach sorted: OK
> /qof/gnc-date/gnc localtime: OK
> /qof/gnc-date/gnc gmtime: OK
> /qof/gnc-date/gnc mktime: OK
> /qof/gnc-date/gnc mktime normalization: OK
> /qof/gnc-date/gnc ctime: OK
> /qof/gnc-date/gnc time: OK
> /qof/gnc-date/gnc date dateformat to string: OK
> /qof/gnc-date/gnc date string to dateformat: OK
> /qof/gnc-date/gnc date monthformat to string: OK
> /qof/gnc-date/gnc date string to monthformat: OK
> /qof/gnc-date/timespec normalize: OK
> /qof/gnc-date/timespec equal: OK
> /qof/gnc-date/timespec cmp: OK
> /qof/gnc-date/timespec diff: OK
> /qof/gnc-date/timespec abs: 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: There are some differences between
> distros in the way they namelocales, and this can cause trouble with the
> locale-basedformatting. If you get the assert in this function, run locale
> -aand make sure that en_US, en_GB, and fr_FR are installed and thatif a
> suffix is needed it's in the suffixes array.**
> ERROR:../../../../libgnucash/engine/test/test-gnc-date.c:491:test_gnc_setloc
> ale: code should not be reached
> FAIL test-qof (exit status: 134)
> 

Hi Eric,

Thanks for the feedback. The error message suggests the solution: for certain 
tests to work you need to have these three locales installed on your system: 
en_US, en_GB and fr_FR. It appears at least one of them is missing on your 
system.

In our test environment (which is based on Ubuntu 14.04LTS) we handle this by 
running
sudo apt-get --reinstall install -qq language-pack-en language-pack-fr

Perhaps that works for you as well ?

In addition let me add there is a test that assumes your timezone to be Los 
Angeles. So to be sure this test passes at all times of the day, it's best to 
run the tests as follows:
TZ="America/Los_Angeles" make check

Geert


More information about the gnucash-devel mailing list