]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
2004-04-14 Olivier Andrieu <oliv__a@users.sourceforge.net>
authorOlivier Andrieu <oliv__a@users.sourceforge.net>
Tue, 13 Apr 2004 22:29:50 +0000 (22:29 +0000)
committerOlivier Andrieu <oliv__a@users.sourceforge.net>
Tue, 13 Apr 2004 22:29:50 +0000 (22:29 +0000)
* test/glib/test-dbus-glib.c (timed_exit): fail the test after
a few seconds.

ChangeLog
test/glib/test-dbus-glib.c

index 97594d893ffa7d766c210e19f236398e84e1f12a..e306348b9e33b348f42827a0b399ca2d8f199587 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index 5cb312353c37f42034ce0ae7d28366d294263866..ed94afae6685848d0154ed9364d5baff9cdda84b 100644 (file)
@@ -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)