From: David Levine Date: Sun, 20 Sep 2020 15:48:40 +0000 (-0400) Subject: Expanded allowed text in mhical parse error message. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/403805faa7a8564c103801891b5abf33974767ad Expanded allowed text in mhical parse error message. Thanks to Eric for reporting that BSD yacc produced a different error message than bison. --- diff --git a/test/mhical/test-mhical b/test/mhical/test-mhical index 7b75789a..cd77a495 100755 --- a/test/mhical/test-mhical +++ b/test/mhical/test-mhical @@ -955,10 +955,6 @@ At: Sun, 14 May 2017 13:00 +0000 To: Sun, 14 May 2017 14:00 EOF -cat >"$expected_err" <<'EOF' -mhical: syntax error, unexpected ICAL_COMMA, expecting ICAL_COLON after " this line is not folded" -EOF - set +e printf %s \ "BEGIN:VCALENDAR @@ -975,7 +971,8 @@ END:VEVENT END:VCALENDAR" | TZ=UTC mhical >"$actual" 2>"$actual_err" set -e check "$expected" "$actual" -check "$expected_err" "$actual_err" +grep "mhical: syntax error.*this line is not folded\"" "$actual_err" >/dev/null +test `wc -l <"$actual_err"` -eq 1 # check null input