aboutsummaryrefslogtreecommitdiff
path: root/texinfo/testsuite/makeinfo.0/not.exp
blob: 3c5ac5a59646d37ffecb1e50ef1853a944052235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
}