After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712306 - make check fails for python bindings
make check fails for python bindings
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Python Bindings
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2013-11-14 15:11 UTC by Geert Janssens
Modified: 2018-06-29 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2013-11-14 15:11:03 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.
Comment 1 Geert Janssens 2013-12-07 10:36:03 UTC
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.
Comment 2 John Ralls 2018-06-29 23:21:27 UTC
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.