diff options
Diffstat (limited to 'texinfo/testsuite/makeinfo.0/not.exp')
-rw-r--r-- | texinfo/testsuite/makeinfo.0/not.exp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/texinfo/testsuite/makeinfo.0/not.exp b/texinfo/testsuite/makeinfo.0/not.exp new file mode 100644 index 00000000000..3c5ac5a5964 --- /dev/null +++ b/texinfo/testsuite/makeinfo.0/not.exp @@ -0,0 +1,15 @@ +# lessons: +# 1) ALL expected args to a cmd on one line! +# 2) `*' at end of string match pattern essential---match *complete* string! +# 3) $srcdir (at least when .) expanded in dir where runtest invoked--- +# NOT dir where test lives! +# 4) stderr already folded into stdout; no need for 2>&1 or such things + +catch "exec $MAKEINFO $srcdir/text/not.texi" maki_out +verbose "Makeinfo output: $maki_out" 1 + +if [string match "No*setfilename*found*in*" "$maki_out"] then { + pass "@setfilename required" +} else { + fail "@setfilename required" +} |