Commit 61b294f1 authored by Olivier Andrieu's avatar Olivier Andrieu

2004-04-14 Olivier Andrieu <oliv__a@users.sourceforge.net>

	* test/glib/test-dbus-glib.c (timed_exit): fail the test after
	a few seconds.
parent fefa7ed4
2004-04-14 Olivier Andrieu <oliv__a@users.sourceforge.net>
* test/glib/test-dbus-glib.c (timed_exit): fail the test after
a few seconds.
2004-04-13 Michael Meeks <michael@ximian.com>
* glib/dbus-gobject.c (handle_introspect): split out
......
......@@ -7,6 +7,13 @@
static GMainLoop *loop = NULL;
static int n_times_foo_received = 0;
static gboolean
timed_exit (gpointer loop)
{
g_main_loop_quit (loop);
return TRUE;
}
static void
foo_signal_handler (DBusGProxy *proxy,
DBusMessage *signal,
......@@ -200,6 +207,8 @@ main (int argc, char **argv)
dbus_connection_flush (connection);
g_timeout_add (5000, timed_exit, loop);
g_main_loop_run (loop);
if (n_times_foo_received != 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment