From 76b9af849ba1c93eb2b6807e57268b7a7a2e205c Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Thu, 17 Aug 2017 19:42:48 -0400 Subject: [PATCH] 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. --- test/mhical/test-mhical | 5 +++++ uip/mhical.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.56.0