aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libcustomindicator-dbus-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-22 16:19:40 -0500
committerTed Gould <ted@canonical.com>2009-10-22 16:19:40 -0500
commit1b71a85918d149eb4fdd8f3213ddc52dabc6b684 (patch)
tree09c21cb5f41880c1a7b28527655a374cebb9b61a /tests/test-libcustomindicator-dbus-client.c
parentd6cc9393161f536e479ab8ec2c175c7237b40df4 (diff)
downloadayatana-indicator-application-1b71a85918d149eb4fdd8f3213ddc52dabc6b684.tar.gz
ayatana-indicator-application-1b71a85918d149eb4fdd8f3213ddc52dabc6b684.tar.bz2
ayatana-indicator-application-1b71a85918d149eb4fdd8f3213ddc52dabc6b684.zip
Adding in testing the location of the dbusmenuserver
Diffstat (limited to 'tests/test-libcustomindicator-dbus-client.c')
-rw-r--r--tests/test-libcustomindicator-dbus-client.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c
index bdc0fa6..e0203c0 100644
--- a/tests/test-libcustomindicator-dbus-client.c
+++ b/tests/test-libcustomindicator-dbus-client.c
@@ -158,6 +158,24 @@ prop_menu_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
{
propcount++;
+ GError * error = NULL;
+ GValue value = {0};
+
+ if (!dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_VALUE, &value, G_TYPE_INVALID)) {
+ g_warning("Getting menu object failed: %s", error->message);
+ g_error_free(error);
+ passed = FALSE;
+ check_propcount();
+ return;
+ }
+
+ if (g_strcmp0(TEST_OBJECT, g_value_get_string(&value))) {
+ g_debug("Property menu object Returned: FAILED");
+ passed = FALSE;
+ } else {
+ g_debug("Property menu object Returned: PASSED");
+ }
+
check_propcount();
return;
}