summaryrefslogtreecommitdiff
path: root/src/test/regression-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/regression-component.c')
-rw-r--r--src/test/regression-component.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/regression-component.c b/src/test/regression-component.c
index 463e6bcb..2df42abc 100644
--- a/src/test/regression-component.c
+++ b/src/test/regression-component.c
@@ -282,11 +282,11 @@ void create_new_component_with_va_args()
(void *)0),
(void *)0);
- ok("creating a complex vcalendar", (calendar != NULL));
if (VERBOSE && calendar)
printf("%s\n", icalcomponent_as_ical_string(calendar));
icalcomponent_free(calendar);
+ ok("creating a complex vcalendar", (calendar != NULL));
}
static void print_span(int c, struct icaltime_span span)
@@ -342,13 +342,13 @@ void test_icalcomponent_get_span()
(void *)0);
span = icalcomponent_get_span(c);
+ icalcomponent_free(c);
if (VERBOSE)
print_span(tnum++, span);
#if ADD_TESTS_BROKEN_BUILTIN_TZDATA
int_is("America/Los_Angeles", span.start, 973350000);
#endif
- icalcomponent_free(c);
/** test 2
* We specify times as floating, the returned span is in UTC
@@ -381,13 +381,13 @@ void test_icalcomponent_get_span()
(void *)0);
span = icalcomponent_get_span(c);
+ icalcomponent_free(c);
if (VERBOSE)
print_span(tnum++, span);
#if ADD_TESTS_BROKEN_BUILTIN_TZDATA
int_is("America/New_York", span.start, 973360800);
#endif
- icalcomponent_free(c);
/** test 4
* We specify times in two different timezones, the returned span
@@ -404,13 +404,13 @@ void test_icalcomponent_get_span()
(void *)0);
span = icalcomponent_get_span(c);
+ icalcomponent_free(c);
if (VERBOSE)
print_span(tnum++, span);
#if ADD_TESTS_BROKEN_BUILTIN_TZDATA
int_is("America/New_York", span.start, 973360800);
#endif
- icalcomponent_free(c);
/** test 5
* We specify start time in a timezone and a duration, the returned span
@@ -427,13 +427,13 @@ void test_icalcomponent_get_span()
(void *)0);
span = icalcomponent_get_span(c);
+ icalcomponent_free(c);
if (VERBOSE)
print_span(tnum++, span);
#if ADD_TESTS_BROKEN_BUILTIN_TZDATA
int_is("America/Los_Angeles w/ duration", span.end, 973351800);
#endif
- icalcomponent_free(c);
icalerror_set_errors_are_fatal(0);
/** test 6