{
SignonIdentity *identity = (SignonIdentity*)userdata;
SsoAuthService *proxy = SSO_AUTH_SERVICE (object);
- gchar *object_path;
+ gchar *object_path = NULL;
GError *error = NULL;
g_return_if_fail (identity != NULL);
&error);
SIGNON_RETURN_IF_CANCELLED (error);
identity_registered (identity, object_path, NULL, error);
+ g_free (object_path);
}
static void
{
SignonIdentity *identity = (SignonIdentity*)userdata;
SsoAuthService *proxy = SSO_AUTH_SERVICE (object);
- gchar *object_path;
+ gchar *object_path = NULL;
GVariant *identity_data;
GError *error = NULL;
&error);
SIGNON_RETURN_IF_CANCELLED (error);
identity_registered (identity, object_path, identity_data, error);
+ g_free (object_path);
}
static void
g_main_loop_run (main_loop);
g_free(patterns[0]);
+ g_free(patterns[1]);
+ g_free(patterns[2]);
g_object_unref(idty);
end_test ();
"mech1",
test_auth_session_process_cb,
sessionData);
- if(!main_loop)
- main_loop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (main_loop);
g_free(passwordVa);
g_free(passwordKey);
-
+ end_test ();
}
END_TEST
GHashTable *methods;
guint id = 0;
- if (main_loop == NULL)
- main_loop = g_main_loop_new (NULL, FALSE);
-
identity = signon_identity_new(NULL, NULL);
fail_unless (SIGNON_IS_IDENTITY (identity));
methods = g_hash_table_new (g_str_hash, g_str_equal);
g_type_init ();
g_debug("%s", G_STRFUNC);
+
+ main_loop = g_main_loop_new (NULL, FALSE);
guint id = new_identity();
fail_unless (id != 0);
"Failed to initialize the Identity.");
g_timeout_add (1000, identity_registered_cb, identity);
- main_loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (main_loop);
end_test ();
fail_unless (SIGNON_IS_IDENTITY (idty),
"Failed to initialize the Identity.");
+ main_loop = g_main_loop_new (NULL, FALSE);
gint last_id = new_identity();
GHashTable *methods = create_methods_hashtable();
g_hash_table_destroy (methods);
g_timeout_add (1000, test_quit_main_loop_cb, idty);
- main_loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (main_loop);
g_object_unref(idty);
g_object_unref (idty);
g_object_unref (idty2);
+
+ end_test ();
}
END_TEST
g_object_unref (idty);
g_object_unref (idty2);
+
+ end_test ();
}
END_TEST
session_data,
"mech1",
test_regression_unref_process_cb,
- g_strdup ("Hi there!"));
+ "Hi there!");
g_main_loop_run (main_loop);
+
+ end_test ();
}
END_TEST