GNOME Bugzilla – Bug 747676
gio/tests/socket fails: test_fd_roundtrip
Last modified: 2015-06-30 01:44:15 UTC
On OS X 10.8, glib-2.44.0... PASS: socket 1 /socket/ipv4_sync PASS: socket 2 /socket/ipv4_async PASS: socket 3 /socket/ipv6_sync PASS: socket 4 /socket/ipv6_async PASS: socket 5 /socket/ipv6_v4mapped PASS: socket 6 /socket/close_graceful PASS: socket 7 /socket/timed_wait ERROR: socket - missing test plan ERROR: socket - exited with status 134 (terminated by signal 6?) gio/tests/socket.log reports: GLib-GIO:ERROR:socket.c:1007:test_fd_roundtrip: assertion failed (error == NULL): Unable to shutdown socket: Socket is not connected (g-io-error-quark, 45) Looks like a new failure vs 2.42.2
test was added in bug 741707 The test does seem slightly dubious; we can dup the socket fd, but there's still only one actual TCP connection, so it's plausible that calling shutdown() on either fd would also effectively shutdown the other. Does the test pass if you remove the failing assertion? (And pass NULL instead of &error in the g_socket_shutdown(client2) call)
Yup... /socket/fd_roundtrip: OK