Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/dep-var.exp
RevisionDateAuthorComments
 1.10  14-Jan-2025  rillig make: simplify parsing of dependency lines

The evaluation modes that allow or deny undefined variables have the same
effect in this case, as Var_Subst does not return an error marker.
 1.9  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.8  09-Jul-2024  rillig make: error out on parse/evaluation errors in shell commands

The expression ${VAR:X} has an unknown modifier ':X'. Previously, this
expression errored out when the expression was evaluated at parse time,
but not when the expression was evaluated when generating the commands
to bring a target up to date. The errors were previously reported, they
didn't affect the exit status, though.

Now, errors in expressions are handled in the same way, regardless of
the time at which they are evaluated.
 1.7  02-Jun-2024  rillig make: sync VarEvalMode constant names with their debug log names
 1.6  19-Nov-2023  rillig make: replace 'variable expression' with 'expression' in diagnostics
 1.5  13-Feb-2023  rillig tests/make: update test for evaluating undefined variables
 1.4  08-Sep-2020  rillig make(1): fix off-by-one error in SuffExpandChildren

In suff.c r1.144 from yesterday, in the line "cp += nested_p - cp", I
accidentally removed the "- 1". Since these "- 1" lines lead to slow
execution, each branch now increments the pointer separately by the
actually needed amount.

Fixing this bug posed way more new questions than it answered, and it
revealed an inconsistency in the parser about how characters are to be
escaped, and missing details in the documentation of Var_Parse, as well
as a parse error that unexpectedly doesn't stop make from continuing.
 1.3  03-Sep-2020  rillig make(1): add test for expansion of indirect variables in dependencies
 1.2  03-Sep-2020  rillig make: extend test for unresolved variables in dependencies

This is to ensure that the upcoming refactoring of Var_Parse in
SuffExpandChildren does not break anything.
 1.1  22-Aug-2020  rillig make(1): add test for deferred variable expansion in dependencies

RSS XML Feed