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 698220 - libsoup-2.42.1: tests fail
libsoup-2.42.1: tests fail
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: Misc
2.42.x
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-17 17:27 UTC by Pacho Ramos
Modified: 2013-04-18 21:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output (1.78 KB, text/plain)
2013-04-17 18:15 UTC, Pacho Ramos
  Details
misc-test: skip the IPv6 server test if there's no IPv6 support (869 bytes, patch)
2013-04-18 19:42 UTC, Dan Winship
committed Details | Review

Description Pacho Ramos 2013-04-17 17:27:15 UTC
make[3]: Entering directory `/var/tmp/portage/net-libs/libsoup-2.42.1/work/libsoup-2.42.1/tests'
SKIP: auth-test
cache-test: OK
PASS: cache-test
chunk-test: OK
PASS: chunk-test
coding-test: OK
PASS: coding-test
connection-test: OK
PASS: connection-test
context-test: OK
PASS: context-test
continue-test: OK
PASS: continue-test
cookies-test: OK
PASS: cookies-test
date: OK
PASS: date
forms-test: OK
PASS: forms-test
header-parsing: OK
PASS: header-parsing

(misc-test:7639): libsoup-CRITICAL **: soup_server_add_handler: assertion `SOUP_IS_SERVER (server)' failed

(misc-test:7639): libsoup-CRITICAL **: soup_server_run_async: assertion `SOUP_IS_SERVER (server)' failed

(misc-test:7639): libsoup-CRITICAL **: soup_server_get_port: assertion `SOUP_IS_SERVER (server)' failed

(misc-test:7639): GLib-GObject-CRITICAL **: g_object_add_weak_pointer: assertion `G_IS_OBJECT (object)' failed

(misc-test:7639): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(misc-test:7639): libsoup-CRITICAL **: soup_server_quit: assertion `SOUP_IS_SERVER (server)' failed

(misc-test:7639): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
misc-test: 9 error(s). Run with '-d' for details
FAIL: misc-test
multipart-test: OK
PASS: multipart-test
ntlm-test: OK
PASS: ntlm-test
SKIP: proxy-test
SKIP: pull-api
SKIP: range-test
redirect-test: OK
PASS: redirect-test
requester-test: OK
PASS: requester-test
resource-test: OK
PASS: resource-test
session-test: OK
PASS: session-test
server-auth-test: OK
PASS: server-auth-test
sniffing-test: OK
PASS: sniffing-test
socket-test: OK
PASS: socket-test
ssl-test: OK
PASS: ssl-test
streaming-test: OK
PASS: streaming-test
timeout-test: OK
PASS: timeout-test
tld-test: OK
PASS: tld-test
uri-parsing: OK
PASS: uri-parsing
SKIP: xmlrpc-server-test
SKIP: xmlrpc-test
========================================================================
1 of 25 tests failed
(6 tests were not run)
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup
========================================================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.42.1/work/libsoup-2.42.1/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.42.1/work/libsoup-2.42.1/tests'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.42.1/work/libsoup-2.42.1/tests'
make: *** [check-recursive] Error 1
Comment 1 Dan Winship 2013-04-17 18:02:56 UTC
what configure options? and do you have any local patches?

please attach the output of "./misc-test -d"
Comment 2 Pacho Ramos 2013-04-17 18:13:27 UTC
No local patches, this are the options:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --disable-gtk-doc --disable-static --disable-tls-check --with-gnome --without-apache-httpd --enable-introspection --without-ntlm-auth
Comment 3 Pacho Ramos 2013-04-17 18:15:50 UTC
Created attachment 241766 [details]
output
Comment 4 Dan Winship 2013-04-17 18:42:00 UTC
oops, it tries to create an SSL server whether or not you have glib-networking SSL support available...
Comment 5 Pacho Ramos 2013-04-17 19:40:46 UTC
I have glib-networking-2.36.0 with ssl support compiled in :/
Comment 6 Dan Winship 2013-04-18 19:39:15 UTC
Oh... the warnings were at the top, so I was assuming it was warning about the SoupServers that were created before any tests ran, but I guess it's actually complaining about the servers in the IPv6 test:

  IPv6 server test
    HTTP/1.1
      request failed: 4 Cannot connect to destination (::1)
    HTTP/1.0
      request failed: 4 Cannot connect to destination (::1)

and you just ran it as "./misc-test -d >& logfile" or something like that, and stdout and stderr got interleaved incorrectly...

So, I guess you have IPv6 support disabled?
Comment 7 Dan Winship 2013-04-18 19:42:10 UTC
Created attachment 241856 [details] [review]
misc-test: skip the IPv6 server test if there's no IPv6 support

====

does this fix it?
Comment 8 Pacho Ramos 2013-04-18 20:09:05 UTC
Probably like https://bugzilla.gnome.org/show_bug.cgi?id=667468 then

Let me try
Comment 9 Pacho Ramos 2013-04-18 20:12:56 UTC
It works fine, thanks a lot :D
Comment 10 Dan Winship 2013-04-18 21:17:53 UTC
Attachment 241856 [details] pushed as ce2043a - misc-test: skip the IPv6 server test if there's no IPv6 support