Adapt libecal to the new ESource API.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-ecal-stress-factory--serial.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #include <stdlib.h>
4 #include <libecal/e-cal.h>
5
6 #include "ecal-test-utils.h"
7
8 #define NUM_CALS 200
9
10 gint
11 main (gint argc,
12       gchar **argv)
13 {
14         gchar *uri = NULL;
15         gint i;
16
17         g_type_init ();
18
19         /* Serially create, open, (close), and remove many calendars */
20         for (i = 0; i < NUM_CALS; i++) {
21                 ECal *cal;
22
23                 cal = ecal_test_utils_cal_new_temp (&uri,
24                                 E_CAL_SOURCE_TYPE_EVENT);
25                 ecal_test_utils_cal_open (cal, FALSE);
26
27                 g_free (uri);
28         }
29
30         return 0;
31 }