gdbus tests: remove buggy use of GMainLoop
authorRyan Lortie <desrt@desrt.ca>
Wed, 14 Dec 2011 01:54:24 +0000 (20:54 -0500)
committerRyan Lortie <desrt@desrt.ca>
Wed, 14 Dec 2011 14:33:30 +0000 (09:33 -0500)
commit0a7930d04879018b5ea451ee9708f40fe93a131e
tree17b15a9ddbeab8b76c07169e0c57ebf4c9fe24e8
parenta2e9318d4a8dc1257526814b8255210acd13d406
gdbus tests: remove buggy use of GMainLoop

g_main_loop_quit() only quits mainloops that are currently running --
not ones that may run in the future.  The way the gdbus-threading tests
are written can possibly result in a call to g_main_loop_quit() before
g_main_loop_run() has started.

The mainloops aren't actually used for anything other than signalling
the completion of the threads, so just use g_thread_join() for that.

https://bugzilla.gnome.org/show_bug.cgi?id=666129
gio/tests/gdbus-threading.c