]> Pileus Git - lackey/blobdiff - cals/ical.c
Fix date and ical test cases
[lackey] / cals / ical.c
index 4336e8157b305539cf50bd6762e5ebcd8942bb5c..bd41b721c899715ff29853eff22e8de320cc8d37 100644 (file)
@@ -350,10 +350,10 @@ void ical_printr(icalcomponent *comp, int depth)
        }
 }
 
-void ical_test(void)
+void ical_test(char *path)
 {
        /* Load ical */
-       FILE *file = fopen("data/all.ics", "r");
+       FILE *file = fopen(path, "r");
        icalparser *parser = icalparser_new();
        icalparser_set_gen_data(parser, file);
        icalcomponent *comp = icalparser_parse(parser, (void*)fgets);