From: Leonardo Taccari Date: Thu, 17 Aug 2017 23:42:48 +0000 (-0400) Subject: mhical expected an ics file as input and after just pressing X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/76b9af849ba1c93eb2b6807e57268b7a7a2e205c mhical expected an ics file as input and after just pressing ^D I've found that mhical wasn't happy about an empty input. A trivial patch that should fix this issue. --- diff --git a/test/mhical/test-mhical b/test/mhical/test-mhical index 930c35f6..ad51b09c 100755 --- a/test/mhical/test-mhical +++ b/test/mhical/test-mhical @@ -874,5 +874,10 @@ check "$expected" "$actual" check "$expected_err" "$actual_err" +# check null input +start_test "null input" +check_exit '-eq 0' mhical next) { + if (clines && clines->next) { (void) fmt_scan (fmt, buffer, INT_MAX, dat, NULL); fputs (charstring_buffer (buffer), file); fmt_free (fmt, 1);