[evolution-data-server] [Bug 611355] [PATCH] calendar/tests/ecal/test-ecal-create-object--2 test



commit ec22117c4619d854d1252d0390617012d9895f28
Author: Priit Laes <plaes plaes org>
Date:   Sun Feb 28 09:43:04 2010 +0200

    [Bug 611355] [PATCH] calendar/tests/ecal/test-ecal-create-object--2 test
    
    Fix test-ecal-create-object--2 test, fixes bug 611355

 calendar/tests/ecal/test-ecal-create-object--2.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/calendar/tests/ecal/test-ecal-create-object--2.c b/calendar/tests/ecal/test-ecal-create-object--2.c
index 220790c..4b3391e 100644
--- a/calendar/tests/ecal/test-ecal-create-object--2.c
+++ b/calendar/tests/ecal/test-ecal-create-object--2.c
@@ -13,24 +13,26 @@ main (gint argc, gchar **argv)
 {
 	ECal *cal;
 	gchar *uri = NULL;
-        ECalComponent *e_component, *e_component_final;
-        icalcomponent *icalcomponent_final;
+	ECalComponent *e_component, *e_component_final;
+	icalcomponent *icalcomponent_final;
 	gchar *uid;
 
+	g_type_init ();
+
 	cal = ecal_test_utils_cal_new_temp (&uri, E_CAL_SOURCE_TYPE_EVENT);
 	ecal_test_utils_cal_open (cal, FALSE);
-        ecal_test_utils_create_component (cal, "20040109T090000Z", "UTC",
+	ecal_test_utils_create_component (cal, "20040109T090000Z", "UTC",
                         "20040109T103000", "UTC", EVENT_SUMMARY, &e_component,
                         &uid);
 
 	icalcomponent_final = ecal_test_utils_cal_get_object (cal, uid);
-        e_component_final = e_cal_component_new ();
+	e_component_final = e_cal_component_new ();
 	ecal_test_utils_cal_component_set_icalcomponent (e_component_final,
 				icalcomponent_final);
 	ecal_test_utils_cal_assert_e_cal_components_equal (e_component,
 			e_component_final);
 
-        g_object_unref (e_component_final);
+	g_object_unref (e_component_final);
 	g_object_unref (e_component);
 	g_free (uid);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]