diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-05-21 22:21:49 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-05-21 22:21:49 +1200 |
commit | 6feec7c7c39a72cce84c9d18ffc6ff7a8e86f91d (patch) | |
tree | d6b64fb51a66bc8d5d8aaa90e717a04b550a35a4 | |
parent | c63dc8b244399df3235ad690d3fb3144cb6ef3b1 (diff) | |
download | pgm-interlace-6feec7c7c39a72cce84c9d18ffc6ff7a8e86f91d.tar.xz |
Test bad height to improve coverage
-rwxr-xr-x | test/error/bad-height.sh | 10 | ||||
-rw-r--r-- | test/error/bad-height.stderr.log.expected | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/error/bad-height.sh b/test/error/bad-height.sh new file mode 100755 index 0000000..2470993 --- /dev/null +++ b/test/error/bad-height.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +${EXECUTABLE} /dev/stdin << EOF +P5 +2 +b +255 +11 +11 +EOF diff --git a/test/error/bad-height.stderr.log.expected b/test/error/bad-height.stderr.log.expected new file mode 100644 index 0000000..cd63b09 --- /dev/null +++ b/test/error/bad-height.stderr.log.expected @@ -0,0 +1,2 @@ +read_token: no token available +parse_header: cannot read height |