mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
ee914ef902
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.
138 lines
3.7 KiB
Plaintext
138 lines
3.7 KiB
Plaintext
mod-unknown-direct:
|
|
want: Unknown modifier 'Z'
|
|
make: Unknown modifier "Z"
|
|
VAR:Z=before--after
|
|
|
|
mod-unknown-indirect:
|
|
want: Unknown modifier 'Z'
|
|
make: Unknown modifier "Z"
|
|
VAR:Z=before-inner}-after
|
|
|
|
unclosed-direct:
|
|
want: Unclosed variable expression, expecting '}' for modifier "S,V,v," of variable "VAR" with value "Thevariable"
|
|
make: Unclosed variable expression, expecting '}' for modifier "S,V,v," of variable "VAR" with value "Thevariable"
|
|
VAR:S,V,v,=Thevariable
|
|
|
|
unclosed-indirect:
|
|
want: Unclosed variable expression after indirect modifier, expecting '}' for variable "VAR"
|
|
make: Unclosed variable expression after indirect modifier, expecting '}' for variable "VAR"
|
|
VAR:S,V,v,=Thevariable
|
|
|
|
unfinished-indirect:
|
|
want: Unfinished modifier for VAR (',' missing)
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
VAR:S,V,v=
|
|
|
|
unfinished-loop:
|
|
want: Unfinished modifier for UNDEF ('@' missing)
|
|
make: Unfinished modifier for "UNDEF" ('@' missing)
|
|
|
|
want: Unfinished modifier for UNDEF ('@' missing)
|
|
make: Unfinished modifier for "UNDEF" ('@' missing)
|
|
|
|
1 2 3
|
|
|
|
loop-close:
|
|
make: Unclosed variable expression, expecting '}' for modifier "@var@${var}}...@" of variable "UNDEF" with value "1}... 2}... 3}..."
|
|
1}... 2}... 3}...
|
|
1}... 2}... 3}...
|
|
|
|
words:
|
|
want: Unfinished modifier for UNDEF (']' missing)
|
|
make: Unfinished modifier for "UNDEF" (']' missing)
|
|
|
|
want: Unfinished modifier for UNDEF (']' missing)
|
|
make: Unfinished modifier for "UNDEF" (']' missing)
|
|
|
|
13=
|
|
make: Bad modifier ":[123451234512345123451234512345]" for variable "UNDEF"
|
|
12345=S,^ok,:S,^3ok,}
|
|
|
|
exclam:
|
|
want: Unfinished modifier for VARNAME ('!' missing)
|
|
make: Unfinished modifier for "VARNAME" ('!' missing)
|
|
|
|
want: Unfinished modifier for ! ('!' missing)
|
|
make: Unfinished modifier for "!" ('!' missing)
|
|
|
|
|
|
mod-subst-delimiter:
|
|
make: Missing delimiter for modifier ':S'
|
|
1:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
2:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
3:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
4:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
5:
|
|
make: Unclosed variable expression, expecting '}' for modifier "S,from,to," of variable "VAR" with value "TheVariable"
|
|
6: TheVariable
|
|
7: TheVariable
|
|
|
|
mod-regex-delimiter:
|
|
make: Missing delimiter for :C modifier
|
|
1:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
2:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
3:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
4:
|
|
make: Unfinished modifier for "VAR" (',' missing)
|
|
5:
|
|
make: Unclosed variable expression, expecting '}' for modifier "C,from,to," of variable "VAR" with value "TheVariable"
|
|
6: TheVariable
|
|
7: TheVariable
|
|
|
|
mod-ts-parse:
|
|
112358132134
|
|
15152535558513521534
|
|
make: Bad modifier ":ts\65oct" for variable "FIB"
|
|
65oct}
|
|
make: Bad modifier ":ts\65oct" for variable ""
|
|
65oct}
|
|
make: Bad modifier ":tsxy" for variable "FIB"
|
|
xy}
|
|
|
|
mod-t-parse:
|
|
make: Bad modifier ":t" for variable "FIB"
|
|
|
|
make: Bad modifier ":txy" for variable "FIB"
|
|
y}
|
|
make: Bad modifier ":t" for variable "FIB"
|
|
|
|
make: Bad modifier ":t" for variable "FIB"
|
|
M*}
|
|
|
|
mod-ifelse-parse:
|
|
make: Unfinished modifier for "FIB" (':' missing)
|
|
|
|
make: Unfinished modifier for "FIB" (':' missing)
|
|
|
|
make: Unfinished modifier for "FIB" ('}' missing)
|
|
|
|
make: Unfinished modifier for "FIB" ('}' missing)
|
|
|
|
then
|
|
|
|
mod-remember-parse:
|
|
1 1 2 3 5 8 13 21 34
|
|
make: Unknown modifier "__"
|
|
|
|
|
|
mod-sysv-parse:
|
|
make: Unknown modifier "3"
|
|
make: Unclosed variable expression, expecting '}' for modifier "3" of variable "FIB" with value ""
|
|
|
|
make: Unknown modifier "3="
|
|
make: Unclosed variable expression, expecting '}' for modifier "3=" of variable "FIB" with value ""
|
|
|
|
make: Unknown modifier "3=x3"
|
|
make: Unclosed variable expression, expecting '}' for modifier "3=x3" of variable "FIB" with value ""
|
|
|
|
1 1 2 x3 5 8 1x3 21 34
|
|
|
|
exit status 0
|