From 1f277de6afa53dd564c5d9ca82704c659dfbf90a Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Mon, 4 Mar 2013 20:07:00 +0200 Subject: [PATCH] Fix auth session query mechanisms test --- tests/check_signon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/check_signon.c b/tests/check_signon.c index 2de8e14..b1d0ae0 100644 --- a/tests/check_signon.c +++ b/tests/check_signon.c @@ -245,7 +245,8 @@ test_auth_session_query_mechanisms_cb (SignonAuthSession *self, gchar** patterns = (gchar**)user_data; int i = g_strv_length(mechanisms); - fail_unless( i == g_strv_length(patterns), "The number of obtained methods is wrong: %d %s", i); + int x = g_strv_length(patterns); + fail_unless( i == x, "The number of obtained methods is wrong: %d vs %d", i, x); while ( i > 0 ) { @@ -274,12 +275,11 @@ START_TEST(test_auth_session_query_mechanisms) g_clear_error(&err); - gchar* patterns[5]; + gchar* patterns[4]; patterns[0] = g_strdup("mech1"); patterns[1] = g_strdup("mech2"); patterns[2] = g_strdup("mech3"); - patterns[3] = g_strdup("BLOB"); - patterns[4] = NULL; + patterns[3] = NULL; signon_auth_session_query_available_mechanisms(auth_session, (const gchar**)patterns, -- 2.34.1