Add debugging line at beginning of each test
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Mon, 25 Oct 2010 08:26:14 +0000 (11:26 +0300)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Mon, 25 Oct 2010 08:26:14 +0000 (11:26 +0300)
tests/check_signon.c

index 9b0183cab100aaa71aa7722e66d6770dcde02f3d..9805998aa89d808b5737b29ba6b76dfecc5d6c3e 100644 (file)
@@ -98,6 +98,7 @@ START_TEST(test_query_methods)
 {
     g_type_init ();
 
+    g_debug("%s", G_STRFUNC);
     if(!main_loop)
         main_loop = g_main_loop_new (NULL, FALSE);
 
@@ -150,6 +151,7 @@ START_TEST(test_query_mechanisms)
 {
     g_type_init ();
 
+    g_debug("%s", G_STRFUNC);
     auth_service = signon_auth_service_new ();
 
     fail_unless (SIGNON_IS_AUTH_SERVICE (auth_service),
@@ -211,6 +213,7 @@ START_TEST(test_auth_session_query_mechanisms)
 
     GError *err = NULL;
 
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL, "Cannot create Iddentity object");
 
@@ -285,6 +288,7 @@ START_TEST(test_auth_session_query_mechanisms_nonexisting)
     g_type_init();
     GError *err = NULL;
 
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL, "Cannot create Iddentity object");
 
@@ -365,6 +369,7 @@ START_TEST(test_auth_session_creation)
     g_type_init();
     GError *err = NULL;
 
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL, "Cannot create Iddentity object");
 
@@ -391,6 +396,7 @@ START_TEST(test_auth_session_process)
     gint state_counter = 0;
     GError *err = NULL;
 
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL, "Cannot create Iddentity object");
 
@@ -501,6 +507,7 @@ new_identity()
     guint id = 0;
     GError *error = NULL;
 
+    g_debug("%s", G_STRFUNC);
     connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
 
     if(connection)
@@ -570,6 +577,7 @@ START_TEST(test_get_existing_identity)
 {
     g_type_init ();
 
+    g_debug("%s", G_STRFUNC);
     guint id = new_identity();
 
     fail_unless (id != 0);
@@ -592,6 +600,7 @@ START_TEST(test_get_nonexisting_identity)
 {
     g_type_init ();
 
+    g_debug("%s", G_STRFUNC);
     identity = signon_identity_new_from_db(G_MAXINT);
 
     fail_unless (identity != NULL);
@@ -645,6 +654,7 @@ static void store_credentials_identity_cb(SignonIdentity *self,
 START_TEST(test_store_credentials_identity)
 {
     g_type_init ();
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL);
     fail_unless (SIGNON_IS_IDENTITY (idty),
@@ -701,6 +711,7 @@ static void identity_verify_username_cb(SignonIdentity *self,
 START_TEST(test_verify_secret_identity)
 {
     g_type_init ();
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new(NULL, NULL);
     fail_unless (idty != NULL);
     fail_unless (SIGNON_IS_IDENTITY (idty),
@@ -766,6 +777,7 @@ static void identity_remove_cb(SignonIdentity *self, const GError *error, gpoint
 START_TEST(test_remove_identity)
 {
     g_type_init ();
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new();
     fail_unless (idty != NULL);
     fail_unless (SIGNON_IS_IDENTITY (idty),
@@ -884,6 +896,7 @@ static void identity_info_cb(SignonIdentity *self, const SignonIdentityInfo *inf
 
 static SignonIdentityInfo *create_standard_info()
 {
+    g_debug("%s", G_STRFUNC);
     SignonIdentityInfo *info = signon_identity_info_new ();
     signon_identity_info_set_username (info, "James Bond");
     signon_identity_info_set_secret (info, "007", TRUE);
@@ -905,6 +918,7 @@ static SignonIdentityInfo *create_standard_info()
 
 START_TEST(test_info_identity)
 {
+    g_debug("%s", G_STRFUNC);
     g_type_init ();
     SignonIdentity *idty = signon_identity_new();
     fail_unless (idty != NULL);
@@ -1018,6 +1032,7 @@ static void identity_signout_signal_cb (gpointer instance, gpointer user_data)
 
 START_TEST(test_signout_identity)
 {
+    g_debug("%s", G_STRFUNC);
     g_type_init ();
     SignonIdentity *idty = signon_identity_new();
     fail_unless (idty != NULL);
@@ -1074,6 +1089,7 @@ END_TEST
 START_TEST(test_unregistered_identity)
 {
     g_type_init ();
+    g_debug("%s", G_STRFUNC);
     SignonIdentity *idty = signon_identity_new();
     fail_unless (idty != NULL);
     fail_unless (SIGNON_IS_IDENTITY (idty),
@@ -1109,6 +1125,7 @@ END_TEST
 
 START_TEST(test_unregistered_auth_session)
 {
+    g_debug("%s", G_STRFUNC);
     g_type_init ();
     SignonIdentity *idty = signon_identity_new();
     fail_unless (idty != NULL);