From 1261f34c8ec98769224c18fd9d18516d5180018f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 3 Nov 2014 12:41:08 +0100 Subject: Apply patch 01_clear_servers.patch. --- tests/dbus-interface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3