Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/cmd-errors.mk
RevisionDateAuthorComments
 1.13  28-Jun-2025  rillig make: consistently use double quotes in error messages

Previously, some error messages used single quotes, very few used
backticks or parentheses, most already used double quotes.

While here, reword a few error messages to be clearer or more consistent
with related error messages.
 1.12  29-Mar-2025  rillig make: add ":" to error message about unknown modifier

In the manual page, the modifiers are listed with a preceding ":", so
use the same pattern in the error message. This removes an inconsistency
between the error messages "Unknown modifier" and "Bad modifier".
 1.11  29-Aug-2024  rillig make: reduce line length in error messages

The error messages for deeply nested parse errors were hard to decipher,
due to the large amount of text. Split these messages into individual
lines, just as in the backtrace for .include files and .for loops. This
unified backtrace makes the output more uniform.
 1.10  20-Jul-2024  rillig make: don't run erroneous commands in compat mode

When there is a parse or evaluation error in an expression that becomes
part of the command, don't run that command, as the result of the failed
evaluation typically contains garbage characters. Skip the remaining
commands from that target as well, as they may depend on the erroneous
command.
 1.9  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.8  05-Jul-2024  rillig make: error out on unclosed expressions during parse time

In exchange, this adds location information.

For unnamed expressions, the value is no longer printed. This will be
added back in a follow-up commit.
 1.7  05-Jul-2024  rillig tests/make: add expected messages for "Unclosed expression"
 1.6  23-Apr-2024  rillig branches: 1.6.2;
make: clean up comments, code and tests
 1.5  25-Sep-2022  rillig tests/make: reduce trailing whitespace
 1.4  27-Dec-2020  rillig make(1): add test for expansion errors in jobs mode

Since compat mode and jobs mode are implemented separately and vary in
lots of small details, each of them needs to be tested on its own.
 1.3  09-Nov-2020  rillig make(1): add test that parsing continues after a parse error
 1.2  02-Nov-2020  rillig make(1): add test for unclosed variable after a colon
 1.1  02-Nov-2020  rillig make(1): add test for parse errors in shell commands, compat mode
 1.6.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed