* multiple clients try to load the same file during stress testing.
* how can this be done better ?
*/
-const char *expected = "BEGIN:VEVENT
-UID:20040213T055519Z-15802-500-1-3@testcal
-DTSTAMP:20040213T055519Z
-DTSTART;TZID=/softwarestudio.org/Olson_20011030_5/Asia/Calcutta:
- 20040213T130000
-DTEND;TZID=/softwarestudio.org/Olson_20011030_5/Asia/Calcutta:
- 20040213T133000
-TRANSP:OPAQUE
-SEQUENCE:3
-SUMMARY:Test - Travel plans to Kansas
-LOCATION:Yellow Brick road
-CLASS:PUBLIC
-ORGANIZER;CN=dorothy:MAILTO:dorothy@oz
-DESCRIPTION: Discuss way to home
-ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;
- RSVP=TRUE;CN=dorothy;LANGUAGE=en:MAILTO:dorothy@oz
-ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;
- RSVP=TRUE;CN=tinman;LANGUAGE=en:MAILTO:tinman@oz
-ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;
- RSVP=TRUE;CN=toto;LANGUAGE=en:MAILTO:toto@oz
-ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=OPT-PARTICIPANT;PARTSTAT=NEEDS-ACTION;
- RSVP=TRUE;CN=scarecrow;LANGUAGE=en:MAILTO:scarecrow@oz
-LAST-MODIFIED:20040213T055647Z
-END:VEVENT";
+#define EXPECTED \
+"BEGIN:VEVENT\
+UID:20040213T055519Z-15802-500-1-3@testcal\
+DTSTAMP:20040213T055519Z\
+DTSTART;TZID=/softwarestudio.org/Olson_20011030_5/Asia/Calcutta:\
+ 20040213T130000\
+DTEND;TZID=/softwarestudio.org/Olson_20011030_5/Asia/Calcutta:\
+ 20040213T133000\
+TRANSP:OPAQUE\
+SEQUENCE:3\
+SUMMARY:Test - Travel plans to Kansas\
+LOCATION:Yellow Brick road\
+CLASS:PUBLIC\
+ORGANIZER;CN=dorothy:MAILTO:dorothy@oz\
+DESCRIPTION: Discuss way to home\
+ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;\
+ RSVP=TRUE;CN=dorothy;LANGUAGE=en:MAILTO:dorothy@oz\
+ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;\
+ RSVP=TRUE;CN=tinman;LANGUAGE=en:MAILTO:tinman@oz\
+ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;\
+ RSVP=TRUE;CN=toto;LANGUAGE=en:MAILTO:toto@oz\
+ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=OPT-PARTICIPANT;PARTSTAT=NEEDS-ACTION;\
+ RSVP=TRUE;CN=scarecrow;LANGUAGE=en:MAILTO:scarecrow@oz\
+LAST-MODIFIED:20040213T055647Z\
+END:VEVENT"
static char *
test_get_object (ECal *client)
}
actual = icalcomponent_as_ical_string (icalcomp);
- compare = !strcmp (actual, expected);
+ compare = !strcmp (actual, EXPECTED);
g_free (actual);