corrupt test: close connection before releasing GSocket
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 2 Sep 2013 16:14:38 +0000 (17:14 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 3 Sep 2013 11:00:37 +0000 (12:00 +0100)
commitce334cb0d6e141bc480f9d52741766018c2d16f7
tree486dc40451ff7ac4a1b17fbb8c8ab99f9329dd0b
parentcae26e9facc32d90dcb2eecb89c7075e4fe8eb2b
corrupt test: close connection before releasing GSocket

GSocket takes responsibility for closing the fd, and there doesn't
seem to be any way to tell it not to. When this test is adapted to run
under DBusLoop as an alternative to dbus-glib, that becomes a problem,
because DBusLoop/DBusSocketSetEpoll do not tolerate that. Work around it.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
test/corrupt.c