aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-03 12:41:08 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-03 12:43:59 +0100
commit1261f34c8ec98769224c18fd9d18516d5180018f (patch)
tree9445b0348a42a8cfaf5a4845648374364bef912d /tests
parentbe5a91027e0f99202005e95e5dbcff387af618d2 (diff)
downloadremote-logon-service-1261f34c8ec98769224c18fd9d18516d5180018f.tar.gz
remote-logon-service-1261f34c8ec98769224c18fd9d18516d5180018f.tar.bz2
remote-logon-service-1261f34c8ec98769224c18fd9d18516d5180018f.zip
Apply patch 01_clear_servers.patch.
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus-interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dbus-interface.c b/tests/dbus-interface.c
index 28ce314..e699ea5 100644
--- a/tests/dbus-interface.c
+++ b/tests/dbus-interface.c
@@ -184,9 +184,12 @@ slmock_check_login(GDBusConnection * session, slmock_table_t * slmockdata, gbool
GVariant * array = g_variant_get_child_value(retval, 2);
int i;
+ // Check all servers should be in the result are in the result
for (i = 0; slmockdata->servers[i].name != NULL; i++) {
g_assert(find_server(array, &slmockdata->servers[i]));
}
+ // Check there is no more servers in the result than we expected
+ g_assert(i == g_variant_n_children(array));
g_variant_unref(array);
g_variant_unref(retval);