GNOME Bugzilla – Bug 712306
make check fails for python bindings
Last modified: 2018-06-29 23:21:27 UTC
If python bindings are enables with --enable-python, make check will fail on the unit tests for the python bindings. make check-TESTS make[5]: Entering directory `/kobaltnet/janssege/Development/Builds/gnucash-f19-trunk/src/optional/python-bindings/tests' make[6]: Entering directory `/kobaltnet/janssege/Development/Builds/gnucash-f19-trunk/src/optional/python-bindings/tests' rm -f runTests.py.tmp sed < /kobaltnet/janssege/Development/EclipseGnuCash/GnuCash-git/src/optional/python-bindings/tests/runTests.py.in > runTests.py.tmp \ -e 's#@-PYTHON-@#/usr/bin/python#' mv runTests.py.tmp runTests.py chmod u+x runTests.py /kobaltnet/janssege/Development/EclipseGnuCash/GnuCash-git/test-driver: line 95: 31911 Trace/breakpoint trap (core dumped) "$@" > $log_file 2>&1 FAIL: runTests.py This is the content of the test's log file: * 15:51:49 CRIT <GLib> g_str_has_prefix: assertion `prefix != NULL' failed * 15:51:49 OTHER <GLib-GIO> Settings schema '' is not installed The log file suggests that the test aborted because gsettings is not finding it's schemas. GSettings is known to abort the runnig program in such situation. The difficulty in fixing this is that gsettings schemas are only available after a successful "make install" run. That's how the gsettings make rules work. We may circumvent this problem if the tests never reach a code path in which gsettings is used. That will have to be investigated.
This got fixed in the meantime. I forgot I created a bugreport for it. Commits r23457, r23473 and r23474 together ensure that the gsettings code is avoided while running tests.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=712306. Please update any external references or bookmarks.