freebsd-src/unit-tests/var-scope-local.exp
Simon J. Gerraty a052cb4320 Import bmake-20220330
Most relevant change:

	o parse.c: try to include 'posix.mk' the first time
	.POSIX: is encountered, to allow for beter POSIX compliance.

Others

	o cond.c: make debug logging for comparisons less technical
	o lst.c: fix mem leak in Lst_Remove
	o job.c: fix echoing of command with '-' in silent target in jobs mode
	o var.c: make debug logs more readable
	prefer 'long long' over 'long' on 32-bit C99 platforms
	fix crash on .undef of an environment variable
2022-04-03 12:52:08 -07:00

22 lines
1,019 B
Plaintext

Global: .ALLTARGETS = one
Global: .ALLTARGETS = one two
Var_Parse: ${.MAKE.TARGET_LOCAL_VARIABLES} (eval)
Var_SetExpand: variable name "" expands to empty string, with value "three" - ignored
Var_SetExpand: variable name "" expands to empty string, with value "three" - ignored
Global: one two = # (empty)
Global: one two = three
Global: .MAKEFLAGS = -r -k -d v -d
Global: .MAKEFLAGS = -r -k -d v -d 0
: Making var-scope-local.c out of nothing.
: Making var-scope-local.o from var-scope-local.c.
: Making basename "var-scope-local.o" in "." from "var-scope-local.c" in ".".
: Making var-scope-local-assign.o with VAR="local".
: Making var-scope-local-append.o with VAR="local to var-scope-local-append.o".
: Making var-scope-local-append-global.o with VAR="global+local".
: Making var-scope-local-default.o with VAR="global".
: Making var-scope-local-subst.o with VAR="global+local".
: Making var-scope-local-shell.o with VAR="output".
: var-scope-local-use.o uses .USE VAR="global"
: all overwritten
exit status 0