GNOME Bugzilla – Bug 696541
tests: test_play_multithreaded doesn't stop listening
Last modified: 2014-02-25 22:27:53 UTC
Created attachment 239736 [details] [review] GSocketService cleanup In gst-rtsp-server, run rtspserver check tests with CK_FORK=no and fatal warnings: CK_FORK=no G_DEBUG=fatal-warnings make -C tests/check gst/rtspserver.check The test fails with "GLib-GIO-WARNING **: fail: Socket is already closed" In a gdb backtrace, it can be seen that the warning comes when g_socket_service_ready is called during test_play_multithreaded. The problem is that no GSocketService is used in that test. It remains from the previous test test_bind_already_in_use, which hasn't cleaned up properly. The attached patch is a suggested fix for the problem. g_socket_service_stop is used in test_bind_already_in_use, so the socket service stops listening for incoming connections.
Thanks, pushed: commit 75221ac8e3780fb2e8f9e23bfb616389d505515e Author: David Svensson Fors <davidsf@axis.com> Date: Wed Mar 20 11:28:11 2013 +0100 tests: GSocketService cleanup in test_bind_already_in_use Use g_socket_service_stop so the rtspserver test stops listening for incoming connections in test_bind_already_in_use. https://bugzilla.gnome.org/show_bug.cgi?id=696541