cat >"$expected" <<'EOF'
Summary: test
-Description: this file does not end with a newline
+Description: test of invalid line folding
At: Sun, 14 May 2017 13:00 +0000
To: Sun, 14 May 2017 14:00
EOF
DTSTART:20170514T130000Z
DTEND:20170514T140000Z
SUMMARY:test
-DESCRIPTION:this file does not end with a newline
-and this line is not folded,
+DESCRIPTION:test of invalid line folding
+where this line is not folded,
END:VEVENT
END:VCALENDAR" | TZ=UTC mhical >"$actual" 2>"$actual_err"
set -e
# check null input
start_test "null input"
-check_exit '-eq 0' mhical </dev/null
+check_exit '-eq 1' mhical </dev/null
# check timezone boundary at transition from daylight saving time, -2SU
#undef X
vevent vevents = { NULL, NULL, NULL};
-int parser_status = 0;
int
main (int argc, char *argv[])
vevent *v, *nextvevent;
char *form = "mhical.24hour", *format = NULL;
char **argp, **arguments, *cp;
+ int parser_status = 0;
icaldebug = 0; /* Global provided by bison (with name-prefix "ical"). */
vevents.last = &vevents;
/* vevents is accessed by parser as global. */
- icalparse ();
+ parser_status += icalparse();
for (v = &vevents; v; v = nextvevent) {
if (! unfold && v != &vevents && v->contentlines &&