Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/cond-undef-lint.mk
RevisionDateAuthorComments
 1.8  11-Jan-2025  rillig make: replace "Malformed conditional" with "Variable is undefined"

Evaluating a conditional such as ".if ${UNDEF}" produced a "Malformed
conditional" error, even though the form of the conditional was correct,
it was the content of the variable that was wrong.

Replace this message with the more accurate "Variable is undefined",
revealing which of the possibly many variables is actually undefined.
 1.7  11-Jan-2025  rillig make: omit redundant follow-up message "Malformed conditional"

If there is a parse error or an evaluation error during the conditional,
the conditional is already mentioned in the "while evaluating condition"
line, so there's no reason to repeat it once again.

Same for the "Bad condition" message from the '?:' modifier.
 1.6  11-Jan-2025  rillig tests/make: force correct order of expected messages
 1.5  06-Aug-2024  rillig make: in error message about conditionals, use single quotes

Single quotes are used less often in the conditionals themselves, which
leads to fewer confusions.
 1.4  01-Jun-2023  rillig branches: 1.4.2;
tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.
 1.3  15-Nov-2020  rillig make(1): add remarks to the tests about conditions
 1.2  14-Sep-2020  rillig make(1): remove obsolete comments from tests
 1.1  14-Sep-2020  rillig make(1): add test for undefined expressions in conditions in lint mode
 1.4.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed