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.
24 lines
449 B
Plaintext
24 lines
449 B
Plaintext
make: "cond1.mk" line 80: warning: extra else
|
|
make: "cond1.mk" line 90: warning: extra else
|
|
2 is prime
|
|
A='other' B='unknown' C='clever' o='no,no'
|
|
Passed:
|
|
var
|
|
("var")
|
|
(var != var)
|
|
var != var
|
|
!((var != var) && defined(name))
|
|
var == quoted
|
|
|
|
1 is not prime
|
|
2 is prime
|
|
3 is prime
|
|
4 is not prime
|
|
5 is prime
|
|
|
|
make: String comparison operator must be either == or !=
|
|
make: Bad conditional expression '"0" > 0' in '"0" > 0?OK:No'
|
|
|
|
OK
|
|
exit status 0
|