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 626455 - libgnome-keyring tests fail when compiling from console
libgnome-keyring tests fail when compiling from console
Status: RESOLVED FIXED
Product: libgnome-keyring
Classification: Core
Component: General
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-08-09 16:46 UTC by Pacho Ramos
Modified: 2019-02-22 11:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pacho Ramos 2010-08-09 16:46:25 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 :-)
Comment 1 Pacho Ramos 2010-08-31 13:04:03 UTC
Any news on this? Thanks
Comment 2 Pacho Ramos 2010-09-06 12:16:05 UTC
Looks that we need to run tests as follows to succeed:
dbus-launch make check
Comment 3 Stef Walter 2010-09-10 03:27:43 UTC
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