summaryrefslogtreecommitdiff
path: root/tests/src/test-runner.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2018-01-23 12:39:09 +1300
committerRobert Ancell <robert.ancell@canonical.com>2018-01-23 12:54:09 +1300
commit85e637f69c37e3bf1d13e3f1697add3df2eb5637 (patch)
treedf2bd0bdbbeecb641930515c61527ce02bfd6604 /tests/src/test-runner.c
parentff110b2d12ec41bba2d7bad03169617292bec949 (diff)
downloadlightdm-git-85e637f69c37e3bf1d13e3f1697add3df2eb5637.tar.gz
Fix incorrect use of ConsoleKit CanSuspend/Hibernate APIlightdm-1-10
Diffstat (limited to 'tests/src/test-runner.c')
-rw-r--r--tests/src/test-runner.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test-runner.c b/tests/src/test-runner.c
index 503b04a7..19bf32c4 100644
--- a/tests/src/test-runner.c
+++ b/tests/src/test-runner.c
@@ -1241,12 +1241,12 @@ handle_ck_call (GDBusConnection *connection,
else if (strcmp (method_name, "CanSuspend") == 0)
{
check_status ("CONSOLE-KIT CAN-SUSPEND");
- g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE));
+ g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes"));
}
else if (strcmp (method_name, "CanHibernate") == 0)
{
check_status ("CONSOLE-KIT CAN-HIBERNATE");
- g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE));
+ g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes"));
}
else if (strcmp (method_name, "CloseSession") == 0)
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE));
@@ -1358,10 +1358,10 @@ ck_name_acquired_cb (GDBusConnection *connection,
" <arg name='can_stop' direction='out' type='b'/>"
" </method>"
" <method name='CanSuspend'>"
- " <arg name='can_suspend' direction='out' type='b'/>"
+ " <arg name='can_suspend' direction='out' type='s'/>"
" </method>"
" <method name='CanHibernate'>"
- " <arg name='can_hibernate' direction='out' type='b'/>"
+ " <arg name='can_hibernate' direction='out' type='s'/>"
" </method>"
" <method name='CloseSession'>"
" <arg name='cookie' direction='in' type='s'/>"