summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-02-14 07:33:44 -0500
committerDavid Zeuthen <davidz@redhat.com>2011-02-14 07:33:44 -0500
commitb90dc09da723308f5c323c1c0f1b9d43f2c32786 (patch)
treea9657bb85ab2eeb49a761843f247033d43f0b682
parent9d6b94176c5a128d98444206bc4d5eb37543e5e6 (diff)
Add tests for org.gtk.GDBus.Name annotation
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/test.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c
index 54abf0e..18cdde7 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1811,6 +1811,17 @@ check_proxy_manager (void)
/* ---------------------------------------------------------------------------------------------------- */
+static void
+check_name_forcing (void)
+{
+ /* these could probably be G_STATIC_ASSERT */
+ g_assert (foo_rocket123_get_gtype != NULL);
+ g_assert (foo_rocket123_call_ignite_xyz != NULL);
+ g_assert (foo_rocket123_emit_exploded_xyz != NULL);
+ g_assert (foo_rocket123_get_speed_xyz != NULL);
+}
+
+
gint
main (gint argc, gchar *argv[])
{
@@ -1822,6 +1833,9 @@ main (gint argc, gchar *argv[])
/* Check introspection data */
check_bar_introspection_data ();
+ /* check that the org.GDBus.Name annotation works */
+ check_name_forcing ();
+
loop = g_main_loop_new (NULL, FALSE);
id = g_bus_own_name (G_BUS_TYPE_SESSION,