From e99a6fee70b515e68a5eda0d9e5d3e0db311d490 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 22 Oct 2009 14:21:49 -0500 Subject: Fleshing out the property counting. --- tests/test-libcustomindicator-dbus-client.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c index a506760..0f3ebb9 100644 --- a/tests/test-libcustomindicator-dbus-client.c +++ b/tests/test-libcustomindicator-dbus-client.c @@ -11,7 +11,9 @@ static int propcount = 0; static void check_propcount (void) { - + if (propcount >= 6) { + g_main_loop_quit(mainloop); + } return; } @@ -39,41 +41,52 @@ prop_id_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) g_debug("Property ID Returned: PASSED"); } + check_propcount(); return; } static void prop_category_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) { + propcount++; + check_propcount(); return; } static void prop_status_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) { + propcount++; + check_propcount(); return; } static void prop_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) { + propcount++; + check_propcount(); return; } static void prop_attention_icon_name_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) { + propcount++; + check_propcount(); return; } static void prop_menu_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) { + propcount++; + check_propcount(); return; } -- cgit v1.2.3