Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/opt-debug-parse.exp
RevisionDateAuthorComments
 1.14  11-Apr-2025  rillig make: convert more messages to the "file:123" format
 1.13  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.12  31-Oct-2024  rillig make: in the debug log, always qualify line number with filename

Previously, to find out the filename corresponding to a line number from
a 'Parsing' line, it was necessary to find the preceding
'SetFilenameVars' line, which was unnecessarily time-consuming and
distracting.

The 'filename:line' format matches the one used in PrintStackTrace, and
it differs from the one used in PrintLocation, as the former format is
more common in other tools.

Most of the affected unit tests only use the 'Parsing' lines to give
additional context to their debug log, so no structural changes there.
 1.11  14-Apr-2024  rillig make: add debug logging for .if and .for lines in -dp mode

This helps track down in which line a condition is evaluated.
 1.10  01-Jun-2023  rillig 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.9  09-Jan-2022  rillig tests/make: add placeholders for .PARSEDIR and .INCLUDEDFROMDIR

When run via 'cd usr.bin/make/unit-tests && make test', the tests are in
the current directory. When run via ATF, the tests are in
/usr/tests/usr.bin/make/unit-tests, while the current directory is a
temporary directory. Allow both variants, plus others that may occur in
the bmake distribution.
 1.8  09-Jan-2022  rillig make: remove redundant lines from stack traces

These lines repeated the information from the .for loop line above them.
 1.7  08-Jan-2022  rillig make: add details about .for loop variables to stack traces

The stack traces are enabled with the debug logging option '-dp'.
 1.6  08-Jan-2022  rillig make: fix stack traces in -dp mode (since 2021-01-26)

Previously, the stack traces omitted some lines that seemed to be
redundant. As a result, the stack traces contained confusing line
numbers.
 1.5  08-Jan-2022  rillig make: fix line number in debug log after returning from a file

The parser returns to the next line, not to the current line.
 1.4  08-Jan-2022  rillig tests/make: test line numbers in debug output for parsing files
 1.3  08-Jan-2022  rillig make: fix reported line numbers of continuation lines (since 2002)

Previously, multi-line directives like '.info' or '.error' reported the
line number of their last line instead of their first line, which is
more usual. This also affected the debug log from '-dp'.
 1.2  02-Jan-2022  rillig tests/make: demonstrate bugs in PrintStackTrace
 1.1  05-Sep-2020  rillig make(1): add tests for each debug option

RSS XML Feed