summaryrefslogtreecommitdiff
path: root/test/cli.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/cli.t')
-rw-r--r--test/cli.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cli.t b/test/cli.t
index 73eefc1..c5aeb98 100644
--- a/test/cli.t
+++ b/test/cli.t
@@ -537,6 +537,15 @@ A missing template file is an error:
colitur: cannot read template /tmp/nope.txt
[2]
+Pointing --template at a directory is an error, not a crash: the read
+itself is guarded, not only the open (F1, fix round 1). "." is used rather
+than a fixed /tmp path so this does not depend on anything outside the
+cram sandbox itself:
+
+ $ colitur table --year 2027 --template . --flavour none
+ colitur: cannot read template .: Sys_error("Value too large for defined data type")
+ [2]
+
table and render both require --year and --template:
$ colitur table --year 2027