From 403805faa7a8564c103801891b5abf33974767ad Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 20 Sep 2020 11:48:40 -0400 Subject: [PATCH] Expanded allowed text in mhical parse error message. Thanks to Eric for reporting that BSD yacc produced a different error message than bison. --- test/mhical/test-mhical | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.56.0