GNOME Bugzilla – Bug 626455
libgnome-keyring tests fail when compiling from console
Last modified: 2019-02-22 11:46:34 UTC
This was originally reported downstream at: http://bugs.gentoo.org/show_bug.cgi?id=323661 but can be also reproduced compiling and running tests from upstream sources on console. The following error is get: Making check in . make[1]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1' make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1' Making check in egg make[1]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg' Making check in . make[2]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg' Making check in tests make[2]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg/tests' make check-am make[3]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg/tests' TEST_DATA=./test-data gtester -m=slow ./run-auto-test TEST: ./run-auto-test... (pid=3065) Starting gnome-keyring-daemon... GNOME_KEYRING_CONTROL=/tmp/keyring-test SSH_AUTH_SOCK=/tmp/keyring-test/ssh GNOME_KEYRING_PID=3066 ** Message: couldn't connect to dbus session bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. ** CRITICAL **: gkd_dbus_secrets_startup: assertion `dbus_conn' failed aborting... PASS: ./run-auto-test make[3]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg/tests' make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg/tests' make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/egg' Making check in library make[1]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library' Making check in . make[2]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library' Making check in tests make[2]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library/tests' make check-am make[3]: Entering directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library/tests' TEST_DATA=./test-data gtester -m=slow ./run-auto-test TEST: ./run-auto-test... (pid=3083) Starting gnome-keyring-daemon... GNOME_KEYRING_CONTROL=/tmp/keyring-test SSH_AUTH_SOCK=/tmp/keyring-test/ssh GNOME_KEYRING_PID=3098 ** Message: couldn't connect to dbus session bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. ** CRITICAL **: gkd_dbus_secrets_startup: assertion `dbus_conn' failed aborting... ** ERROR:test-keyrings.c:47:test_remove_incomplete: assertion failed (GNOME_KEYRING_RESULT_OK == res): (0 == 6) GTester: last random seed: R02Sff9677bb1b29717581e96a3222cfa01b make[3]: *** [check-am] Terminado make[3]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library/tests' make[2]: *** [check] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library' make: *** [check-recursive] Error 1 Thanks for fixing this :-)
Any news on this? Thanks
Looks that we need to run tests as follows to succeed: dbus-launch make check
I think this should fix the problem: commit 4772da8f9539872c76f0b738e508c81ac482c5e9 Author: Stef Walter <stef@memberwebs.com> Date: Fri Sep 10 03:22:02 2010 +0000 Don't try to run daemon tests if DBus is not running. * Check for DBUS_SESSION_BUS_ADDRESS and don't run daemon tests. * Cleanup test makefile variables a bit https://bugzilla.gnome.org/show_bug.cgi?id=626455