History log of /src/usr.bin/make/unit-tests/cond-op.exp
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.16 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.15 30-Mar-2025 rillig

make: use '"filename" line 123' for locations instead of 'filename:123'

The format 'filename:123' is commonly used for identifying a location in
a file. Text editors recognize it and allow quick navigation through it.
The previous format was specific to make and would have required custom
support in editors.

The new format was already used in stack traces, except for the first
line. Now all lines use the same format.


# 1.14 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.13 04-Jul-2024 rillig

make: on error, print the targets to be made

This helps to understand situations with several nested sub-makes in
varying directories.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.12 01-Jun-2023 rillig

branches: 1.12.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.


Revision tags: netbsd-10-1-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
# 1.11 10-Dec-2021 rillig

make: do not evaluate misplaced expressions in malformed conditions

This change only affects the behavior for parse errors. Syntactically
well-formed conditions work exactly as before.


# 1.10 10-Dec-2021 rillig

tests/make: extend test for parse errors in conditions


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.9 19-Jan-2021 rillig

make(1): add error handling for edge case in malformed conditions


# 1.8 19-Jan-2021 rillig

make(1): demonstrate missing error handling for malformed conditions


# 1.7 15-Nov-2020 rillig

make(1): add remarks to the tests about conditions


# 1.6 15-Nov-2020 rillig

make(1): add test for operator precedence using truth tables


# 1.5 11-Sep-2020 rillig

make(1): add rationale for evaluating expression after parse error


# 1.4 11-Sep-2020 rillig

make(1): fix line numbers from test result of the previous commit


# 1.3 11-Sep-2020 rillig

make(1): add test for evaluation of condition after parse error


# 1.2 28-Aug-2020 rillig

make(1): add test for unquoted string literals


# 1.1 16-Aug-2020 rillig

make(1): add dummies for fine-grained tests, one per single feature

The test names have been derived from the current manual page.

All these tests are dummies right now, and the code from the existing
tests will be moved into the new tests step by step.

This is done to prevent modmisc, escape, varmod-edge and varmisc from
growing without any bounds, and to reduce the side-effects of one test
to the others.