PASS: general TEST: youtube... (pid=27240) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified Autolaunch error: X11 initialization failed. ) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified Autolaunch error: X11 initialization failed. ) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified Autolaunch error: X11 initialization failed. ) /youtube/authentication: ** ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2) FAIL GTester: last random seed: R02Sb35df582a38c3c53a083e9247a16f48c /bin/sh: line 1: 27224 Terminated gtester --verbose general youtube calendar contacts picasaweb documents memory perf make[2]: *** [test] Error 143 make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests' make[1]: *** [check-am] Error 2
what if you add: src_test() { unset DBUS_SESSION_BUS_ADDRESS emake check || die } ?
(In reply to comment #1) > what if you add: > src_test() { > unset DBUS_SESSION_BUS_ADDRESS > emake check || die > } This is already in the ebuild, so it doesn't help me.
On the other hand test passes for me with it (and FEATURES="userpriv" and, of course, without gconf running) :-/
maybe it somehow gets X access, could you try unsetting DISPLAY and XAUTHORITY ? Also please paste the output of emerge -pv dbus.
Created attachment 224779 [details] Build log Different test failure here, but still a test failure.
Extracting failure for reading easier ;-) >>> Source compiled. make -j14 check Making check in . make[1]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2' make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2' Making check in gdata/tests make[1]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests' make check-local make[2]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests' TEST: general... (pid=9818) /entry/get_xml: OK /entry/parse_xml: libgdata-Message: Unhandled XML in GDataEntry: <foobar>Test!</foobar> libgdata-Message: Unhandled XML in GDataEntry: <barfoo shizzle="zing"/> libgdata-Message: Unhandled XML in GDataEntry: <ns:barfoo shizzle="zing" fo="shizzle">How about some characters?</ns:barfoo> OK /entry/error_handling: OK /feed/parse_xml: libgdata-Message: Unhandled XML in GDataFeed: <foobar>Test unhandled elements!</foobar> OK /feed/error_handling: OK /query/categories: OK /query/unicode: OK /access-rule/get_xml: OK /access-rule/error_handling: OK /color/parsing: OK /color/output: OK /atom/author: OK /atom/author/error_handling: OK /atom/category: libgdata-Message: Unhandled XML in GDataCategory: <foobar/> libgdata-Message: Unhandled XML in GDataCategory: <shizzle/> OK /atom/category/error_handling: OK /atom/generator: OK /atom/generator/error_handling: OK /atom/link: libgdata-Message: Unhandled XML in GDataLink: Test Content libgdata-Message: Unhandled XML in GDataLink: <foobar/> OK /atom/link/error_handling: OK /gd/email_address: OK /gd/im_address: OK /gd/name: OK /gd/organization: OK /gd/phone_number: OK /gd/postal_address: OK /gd/reminder: OK /gd/when: libgdata-Message: Unhandled XML in GDataGDWhen: <foobar/> OK /gd/where: OK /gd/who: OK /media/category: OK /media/content: OK /media/credit: OK PASS: general TEST: youtube... (pid=9833) /youtube/authentication: ** ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2) FAIL GTester: last random seed: R02S02076ed9d7ca23b0dbc029a65dc9321c /bin/sh: line 1: 9817 Terminated gtester --verbose general youtube calendar contacts picasaweb documents memory perf make[2]: *** [test] Error 143 make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests' make: *** [check-recursive] Error 1
(In reply to comment #4) > maybe it somehow gets X access, could you try unsetting DISPLAY and XAUTHORITY > ? Also please paste the output of emerge -pv dbus. unsetting DISPLAY changes the output: PASS: general TEST: youtube... (pid=13672) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session) /youtube/authentication: ** ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2) FAIL GTester: last random seed: R02See3fe515eaf58cfb9a904fc427ddf244 unsetting XAUTHORITY doesn't make a difference. [ebuild R ] sys-apps/dbus-1.2.3-r1 USE="X doc* -debug (-selinux)" 1,528 kB
Maybe you could add something line "set > set.out" under src_test phase and, then, when tests fail, look at set.out file to check what variables look "strange" (as they will be a lot, you can attach the file here for letting us to check it) Good luck!
I think this might be related: http://stackoverflow.com/questions/257658/how-can-i-make-a-fake-active-session-for-gconf With this: src_test() { unset DBUS_SESSION_BUS_ADDRESS unset DISPLAY eval $(dbus-launch --sh-syntax) export DBUS_SESSION_BUS_ADDRESS gconftool-2 --spawn set > /tmp/set.out emake check || die "emake check failed" } I seem to get closer, but I'm running into: TEST: youtube... (pid=9952) ** WARNING **: Owner of /tmp/orbit-graaff is not the current user aborting... FAIL: youtube
Could you try adding: export XDG_CONFIG_HOME="${T}" to the top of src_test?
(In reply to comment #10) > Could you try adding: > export XDG_CONFIG_HOME="${T}" > > to the top of src_test? It doesn't seem to make a difference. I tried with libgdata 0.6.4 and I'm also seeing a lot of parsing errors.
I haven't seen an emerge --info yet in this bug. Could you guys provide it so we can compare ?
Created attachment 248814 [details] emerge --info
ok I get the same error with FEATURES="userpriv"
Ok, I got totally confused, I thought the test suite spawned a fake server, but it uses the real google service. Since we can't rely on network connectivity in the test suite, I'll just disable the tests causing problems. For now, that leaves the general and perf category. Anyway, for those networked tests, it seems the service changed which means it should be brought to the attention of upstream.
+*libgdata-0.6.5 (04 Oct 2010) + + 04 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org> + -libgdata-0.6.2.ebuild, +libgdata-0.6.5.ebuild, metadata.xml: + Version bump. Disable tests requiring network access, bug #307725. Enable + introspection bits. Fix some leaks. This is not ideal since we will not catch regular test suite failures for the disabled tests, but at least it makes it work for us.