make EXPECTED a macro so it compiles
authorJP Rosevear <jpr@ximian.com>
Thu, 26 Feb 2004 21:03:39 +0000 (21:03 +0000)
committerJP Rosevear <jpr@src.gnome.org>
Thu, 26 Feb 2004 21:03:39 +0000 (21:03 +0000)
2004-02-26  JP Rosevear <jpr@ximian.com>

* tests/ecal/test-ecal.c: make EXPECTED a macro so it compiles

calendar/ChangeLog
calendar/tests/ecal/test-ecal.c

index 0cb7932..0493097 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-26  JP Rosevear <jpr@ximian.com>
+
+       * tests/ecal/test-ecal.c: make EXPECTED a macro so it compiles
+
 2004-02-26 Harish K <kharish@novell.com>
 
        * tests/ecal/test-ecal.c : Added implementation of 
index cbf8775..ae37689 100644 (file)
@@ -534,30 +534,31 @@ test_get_default_object (ECal *client)
  * 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) 
@@ -574,7 +575,7 @@ test_get_object (ECal *client)
        }
 
        actual = icalcomponent_as_ical_string (icalcomp);
-       compare = !strcmp (actual, expected);
+       compare = !strcmp (actual, EXPECTED);
        
        g_free (actual);