NetBSD/usr.bin/make/unit-tests/directive-for-escape.exp

171 lines
5.9 KiB
Plaintext

For: end for 1
For: loop body with chars = !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
. info ${:U!"#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
make: Unclosed expression, expecting '}' for modifier "U!"" of variable "" with value "!""
make: "directive-for-escape.mk" line 19: !"
For: end for 1
For: loop body with chars = !"\\#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
. info ${:U!"\\\\#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
make: Unclosed expression, expecting '}' for modifier "U!"\\\\" of variable "" with value "!"\\"
make: "directive-for-escape.mk" line 30: !"\\
For: end for 1
For: loop body with i = $:
. info ${:U\$}
make: "directive-for-escape.mk" line 45: $
For: loop body with i = ${V}:
. info ${:U${V}}
make: "directive-for-escape.mk" line 45: value
For: loop body with i = ${V:=-with-modifier}:
. info ${:U${V:=-with-modifier}}
make: "directive-for-escape.mk" line 45: value-with-modifier
For: loop body with i = $(V):
. info ${:U$(V)}
make: "directive-for-escape.mk" line 45: value
For: loop body with i = $(V:=-with-modifier):
. info ${:U$(V:=-with-modifier)}
make: "directive-for-escape.mk" line 45: value-with-modifier
For: end for 1
For: loop body with i = $:
. info ${:U\$}
make: "directive-for-escape.mk" line 60: $
For: loop body with i = ${V}:
. info ${:U${V}}
make: "directive-for-escape.mk" line 60: value
For: loop body with i = ${V:=-with-modifier}:
. info ${:U${V:=-with-modifier}}
make: "directive-for-escape.mk" line 60: value-with-modifier
For: loop body with i = $(V):
. info ${:U$(V)}
make: "directive-for-escape.mk" line 60: value
For: loop body with i = $(V:=-with-modifier):
. info ${:U$(V:=-with-modifier)}
make: "directive-for-escape.mk" line 60: value-with-modifier
For: end for 1
For: loop body with i = ${UNDEF:U\$\$:
# ${:U\${UNDEF\:U\\$\\$}
For: loop body with i = {{}}:
# ${:U{{\}\}}
For: loop body with i = end}:
# ${:Uend\}}
For: end for 1
For: loop body with i = ${UNDEF:U\$\$:
. info ${:U\${UNDEF\:U\\$\\$}
make: "directive-for-escape.mk" line 115: ${UNDEF:U\backslash$
For: loop body with i = {{}}:
. info ${:U{{\}\}}
make: "directive-for-escape.mk" line 115: {{}}
For: loop body with i = end}:
. info ${:Uend\}}
make: "directive-for-escape.mk" line 115: end}
For: end for 1
For: loop body with i = begin<${UNDEF:Ufallback:N{{{}}}}>end:
. info ${:Ubegin<${UNDEF:Ufallback:N{{{}}}}>end}
make: "directive-for-escape.mk" line 136: begin<fallback>end
For: end for 1
For: loop body with i = $:
. info ${:U\$}
make: "directive-for-escape.mk" line 145: $
make: "directive-for-escape.mk" line 154: invalid character ':' in .for loop variable name
For: end for 1
make: "directive-for-escape.mk" line 164: invalid character '}' in .for loop variable name
For: end for 1
For: end for 1
For: loop body with i = inner:
. info . $$i: ${:Uinner}
. info . $${i}: ${:Uinner}
. info . $${i:M*}: ${:Uinner:M*}
. info . $$(i): $(:Uinner)
. info . $$(i:M*): $(:Uinner:M*)
. info . $${i$${:U}}: ${i${:U}}
. info . $${i\}}: ${:Uinner\}} # XXX: unclear why ForLoop_SubstVarLong needs this
. info . $${i2}: ${i2}
. info . $${i,}: ${i,}
. info . adjacent: ${:Uinner}${:Uinner}${:Uinner:M*}${:Uinner}
make: "directive-for-escape.mk" line 173: . $i: inner
make: "directive-for-escape.mk" line 174: . ${i}: inner
make: "directive-for-escape.mk" line 175: . ${i:M*}: inner
make: "directive-for-escape.mk" line 176: . $(i): inner
make: "directive-for-escape.mk" line 177: . $(i:M*): inner
make: "directive-for-escape.mk" line 178: . ${i${:U}}: outer
make: "directive-for-escape.mk" line 179: . ${i\}}: inner}
make: "directive-for-escape.mk" line 180: . ${i2}: two
make: "directive-for-escape.mk" line 181: . ${i,}: comma
make: "directive-for-escape.mk" line 182: . adjacent: innerinnerinnerinner
make: "directive-for-escape.mk" line 201: invalid character '$' in .for loop variable name
For: end for 1
make: "directive-for-escape.mk" line 213: eight and no cents.
For: end for 1
make: "directive-for-escape.mk" line 226: newline in .for value
make: "directive-for-escape.mk" line 226: newline in .for value
For: loop body with i = "
":
. info short: ${:U" "}
. info long: ${:U" "}
make: "directive-for-escape.mk" line 227: short: " "
make: "directive-for-escape.mk" line 228: long: " "
For: end for 1
For: loop body with i = "
":
Parsing line 244: .for i in "${.newline}"
For: end for 1
Parse_PushInput: .for loop in directive-for-escape.mk, line 244
make: "directive-for-escape.mk" line 244: newline in .for value
in .for loop from directive-for-escape.mk:244 with i = "
"
For: loop body with i = "
":
: ${:U" "}
SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
Parsing line 245: : ${:U" "}
ParseDependency(: " ")
ParseEOF: returning to file directive-for-escape.mk, line 247
SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
Parsing line 247: .MAKEFLAGS: -d0
ParseDependency(.MAKEFLAGS: -d0)
For: end for 1
For: loop body with i = #:
# ${:U#}
For: loop body with i = \\#:
# ${:U\\\\#}
For: end for 1
For: loop body with i = $:
# ${:U\$}
For: loop body with i = $i:
# ${:U$i}
For: loop body with i = $(i):
# ${:U$(i)}
For: loop body with i = ${i}:
# ${:U${i}}
For: loop body with i = $$:
# ${:U$$}
For: loop body with i = $$$$:
# ${:U$$$$}
For: loop body with i = ${:U\$\$}:
# ${:U${:U\$\$}}
For: end for 1
For: loop body with i = ${.TARGET}:
# ${:U${.TARGET}}
For: loop body with i = ${.TARGET}:
# ${:U${.TARGET}}
For: loop body with i = $${.TARGET}:
# ${:U$${.TARGET\}}
For: loop body with i = $${.TARGET}:
# ${:U$${.TARGET\}}
For: end for 1
For: loop body with i = (((:
# ${:U(((}
For: loop body with i = {{{:
# ${:U{{{}
For: loop body with i = ))):
# ${:U)))}
For: loop body with i = }}}:
# ${:U\}\}\}}
For: end for 1
For: loop body with , = 1:
# $$i $i
# VAR= $$i $i ${a:S,from${:U1}to,}
VAR= $$i $i ${a:S,from${:U1}to,}
make: Fatal errors encountered -- cannot continue
make: stopped in unit-tests
exit status 1