mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Lots more unit tests and code cleanup Relevant changes from ChangeLog o job.c: Print -de error information when running multiple jobs o var.c: only report error for unmatched regex subexpression when linting (-dL) since we cannot tell when an unmatched subexpression is an expected result. reduce memory allocations in the modifiers ':D' and ':U' reduce memory allocation and strlen calls in modifier ':from=to' in the ':Q' modifier, only allocate memory if necessary improve performance for LazyBuf reduce debug logging and memory allocation for ${:U...} reduce verbosity of the -dv debug logging for standard cases fix double varname expansion in the variable modifier '::=' o var.c: avoid evaluating many modifiers in parse only mode in strict mode (-dL) many variable references are parsed twice, the first time just to report parse errors early, so we want to avoid side effects and wasted effort to the extent possible.
22 lines
882 B
Plaintext
22 lines
882 B
Plaintext
Global: VAR{{{}}} = 3 braces
|
|
Var_Parse: ${VAR{{{}}}}" != "3 braces" (eval)
|
|
Global: VARNAME = VAR(((
|
|
Var_Parse: ${VARNAME} (eval)
|
|
Global: VAR((( = 3 open parentheses
|
|
Var_Parse: ${VAR(((}}}}" != "3 open parentheses}}}" (eval)
|
|
Global: .ALLTARGETS = VAR(((=)
|
|
make: "varname.mk" line 30: No closing parenthesis in archive specification
|
|
make: "varname.mk" line 30: Error in archive specification: "VAR"
|
|
Var_Parse: ${:UVAR\(\(\(}= try2 (eval-defined)
|
|
Evaluating modifier ${:U...} on value "" (eval-defined, undefined)
|
|
Result of ${:UVAR\(\(\(} is "VAR\(\(\(" (eval-defined, defined)
|
|
Global: .ALLTARGETS = VAR(((=) VAR\(\(\(=
|
|
make: "varname.mk" line 35: Invalid line type
|
|
Var_Parse: ${VARNAME} (eval)
|
|
Global: VAR((( = try3
|
|
Global: .MAKEFLAGS = -r -k -d v -d
|
|
Global: .MAKEFLAGS = -r -k -d v -d 0
|
|
make: Fatal errors encountered -- cannot continue
|
|
make: stopped in unit-tests
|
|
exit status 1
|