Sjoerd Simons 5043ca30ea GDBusConnection: Fix race in /gdbus/connection/life-cycle
GDBusConnection sets the closed flag in the worker thread, then adds an
idle callback (which refs the Connection) to signal this in the main
thread. The tests session_bus_down doesn't spin the mainloop, so the
"closed" signal will always fire if iterating the mainloop later (and
drops the ref when doing so). But _is_closed can return TRUE even before
signalling this, in which case the "closed" signal isn't fired and the
ref isn't dropped, causing the test to fail.

Instead simply always wait for the closed signal, which is a good thing
to check anyway and ensures the ref is closed.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661896
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
2011-10-18 12:47:49 +01:00
..
2010-08-13 17:23:44 -04:00
2010-09-02 22:36:47 +03:00
2011-09-04 17:50:41 -04:00
2011-06-12 16:17:30 -04:00
2011-06-04 10:45:54 -04:00
2009-03-31 19:39:16 -04:00
2011-09-06 00:31:49 -04:00
2011-09-06 00:31:49 -04:00
2011-08-29 14:49:32 -04:00
2011-09-06 00:31:49 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2010-07-12 18:30:14 -04:00
2011-08-29 14:49:32 -04:00
2011-06-04 19:05:51 -04:00
2010-07-05 00:56:12 -04:00
2011-08-29 14:49:32 -04:00
2010-03-26 09:30:25 -04:00
2010-07-12 18:30:14 -04:00
2010-07-12 18:30:14 -04:00
2011-08-29 14:49:32 -04:00
2010-07-12 18:30:14 -04:00
2011-06-14 21:06:17 -04:00
2010-10-23 02:31:16 +02:00
2011-08-29 14:49:32 -04:00
2011-10-13 23:49:37 -04:00
2011-08-29 14:49:32 -04:00
2010-07-07 19:53:22 -04:00
2009-11-17 20:27:38 -06:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-06-04 18:48:19 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-06-04 18:48:19 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2010-01-12 16:34:18 +01:00
2011-06-07 08:55:31 +08:00
2011-08-30 00:09:51 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-09-04 17:50:41 -04:00
2010-07-10 18:04:22 -04:00
2011-05-03 07:07:41 -04:00
2010-07-07 19:53:22 -04:00
2011-02-08 10:05:00 -05:00
2011-08-29 14:49:32 -04:00
2011-02-08 10:05:00 -05:00
2010-11-28 23:55:43 -05:00
2010-06-04 19:03:38 +02:00
2010-11-28 23:55:43 -05:00
2011-06-04 18:48:19 -04:00
2010-08-19 16:32:37 -04:00
2011-08-29 14:49:32 -04:00
2011-08-29 14:49:32 -04:00
2011-01-09 21:45:20 +01:00
2011-08-29 14:49:32 -04:00
2010-04-16 23:23:40 -04:00
2011-08-29 14:49:32 -04:00
2011-06-29 18:07:29 +01:00
2011-08-29 14:49:32 -04:00
2011-09-04 08:42:31 -04:00
2011-08-29 14:49:32 -04:00
2010-09-24 18:24:41 -03:00
2011-08-04 08:54:55 +02:00
2011-08-26 11:07:32 -04:00
2011-08-29 14:49:32 -04:00
2011-06-14 18:51:57 -04:00
2011-05-05 14:09:11 -04:00
2010-09-24 18:24:41 -03:00
2009-07-05 22:35:55 -04:00
2011-08-29 14:49:32 -04:00
2010-07-12 18:30:14 -04:00
2011-08-29 14:49:32 -04:00
2011-09-06 00:31:49 -04:00
2010-07-07 19:53:22 -04:00
2011-08-29 14:49:32 -04:00