aboutsummaryrefslogtreecommitdiff
path: root/test/error
diff options
context:
space:
mode:
Diffstat (limited to 'test/error')
-rwxr-xr-xtest/error/bad-height.sh10
-rw-r--r--test/error/bad-height.stderr.log.expected2
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