summaryrefslogtreecommitdiff
path: root/gnome-2-22/tests/contact-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-2-22/tests/contact-manager.c')
-rw-r--r--gnome-2-22/tests/contact-manager.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnome-2-22/tests/contact-manager.c b/gnome-2-22/tests/contact-manager.c
new file mode 100644
index 000000000..75bfc7fae
--- /dev/null
+++ b/gnome-2-22/tests/contact-manager.c
@@ -0,0 +1,34 @@
+#include <stdlib.h>
+
+#include <glib.h>
+#include <libempathy/empathy-contact-manager.h>
+
+static gboolean
+time_out (gpointer main_loop)
+{
+ g_main_loop_quit (main_loop);
+
+ return FALSE;
+}
+
+int
+main (int argc, char **argv)
+{
+ EmpathyContactManager *manager;
+ GMainLoop *main_loop;
+
+ g_type_init ();
+
+ main_loop = g_main_loop_new (NULL, FALSE);
+ manager = empathy_contact_manager_new ();
+
+ g_timeout_add_seconds (5, time_out, main_loop);
+
+ g_main_loop_run (main_loop);
+
+ g_object_unref (manager);
+ g_main_loop_unref (main_loop);
+
+ return EXIT_SUCCESS;
+}
+