aboutsummaryrefslogtreecommitdiff
path: root/texinfo/testsuite/makeinfo.0/nonsense.exp
diff options
context:
space:
mode:
Diffstat (limited to 'texinfo/testsuite/makeinfo.0/nonsense.exp')
-rw-r--r--texinfo/testsuite/makeinfo.0/nonsense.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/texinfo/testsuite/makeinfo.0/nonsense.exp b/texinfo/testsuite/makeinfo.0/nonsense.exp
new file mode 100644
index 00000000000..3b19f2680fc
--- /dev/null
+++ b/texinfo/testsuite/makeinfo.0/nonsense.exp
@@ -0,0 +1,12 @@
+catch "exec $MAKEINFO -o ./nonsense.info $srcdir/text/nonsense.texi" maki_out
+
+verbose "Makeinfo output: $maki_out" 1
+
+if [string match \
+ "*Unknown info command*" \
+ "$maki_out" \
+ ] then {
+ pass "unknown command detection"
+} else {
+ fail "unknown command detection"
+}