Add a stress-test for GDBusProxy in threads with no default main context
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Aug 2011 15:00:51 +0000 (16:00 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 15 Aug 2011 16:50:04 +0000 (12:50 -0400)
commit67cf3ea3682a0bd5b94e7b546675ec685a686a5a
tree491367117386defe0ca61ec8e4cb13813f6981b4
parent85214d1e7f1c1e065b2e05dae9d6cae29887e3d3
Add a stress-test for GDBusProxy in threads with no default main context

Destroying a GDBusProxy in a thread used to race with NameOwnerChanged
being delivered to the main context's thread (GNOME #651133).

Also, g_dbus_proxy_call_sync in a thread would race with NameOwnerChanged
being delivered to the main context's thread and rewriting the name_owner
(GNOME #656039).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=656039
Bug-NB: NB#259760
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/tests/.gitignore
gio/tests/Makefile.am
gio/tests/gdbus-proxy-threads.c [new file with mode: 0644]