From 62a6fcf474376024094664db30b075c4a9d71161 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 28 Dec 2018 22:32:45 -0500 Subject: tests/ob_parse_changelog.sh: Verify premature end to parsing --- diff --git a/tests/ob_parse_changelog.sh b/tests/ob_parse_changelog.sh index 7d820b4..8c29042 100755 --- a/tests/ob_parse_changelog.sh +++ b/tests/ob_parse_changelog.sh @@ -45,7 +45,7 @@ foo (1) trunk -- "J. Random Hacker" Thu, 01 Jan 1970 00:00:00 +0000 ' -plan_ 18 +plan_ 19 entry=0 @@ -121,6 +121,11 @@ entry_3() return 1 } +entry_4() +{ + : This should not be reached. +} + entry_cb() { entry=$((${entry} + 1)) @@ -130,3 +135,5 @@ entry_cb() ob_parse_changelog - entry_cb <<-EOF ${CHANGELOG} EOF + +is 'number of parsed entries' "${entry}" 3 -- cgit v0.9.1