History log of /src/usr.bin/make/unit-tests/opt-debug-file.exp
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.11 09-Aug-2025 rillig

tests/make: fix typo


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.10 06-Jul-2025 rillig

tests/make: describe how to read a file into a variable


# 1.9 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.


Revision tags: perseant-exfatfs-base-20240630
# 1.8 30-Jun-2024 rillig

make: error out on some more syntax errors

Previously, these errors only produced a message on stderr. They only
affected make's exit status when they were evaluated at parse time, but
not when evaluating the commands for a specific target right before
executing them.

The affected syntax errors are:
* invalid regular expressions in the ':C' modifier
* out-of-range references to regex groups in the ':C' modifier
* unfinished modifiers


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

branches: 1.7.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.6 03-Mar-2022 rillig

make: make debug logging for comparisons less technical


# 1.5 11-Jan-2022 rillig

tests/make: clean up after test for option '-dF'

When the file for the debug log cannot be opened, make exits
immediately. This doesn't give the test a chance to clean up the
temporary log file.

Instead of trying to treat a regular file as a directory and create a
file in it, assume that the directory /nonexistent-$uuid is actually
nonexistent. This leads to the same kind of error message, independent
of strerror(3).


# 1.4 09-Jan-2022 rillig

tests/make: test output channels for parse errors and other errors


# 1.3 27-Dec-2021 rillig

make: remove usage message if the debug file cannot be opened

Since a non-writable file is not a syntax error, there is no point in
showing the usage in this situation. Showing the usage may have been a
copy-and-paste mistake from a few lines below, when this option was
added back in main.c 1.133 from 2006-10-15.


# 1.2 27-Dec-2021 rillig

tests/make: cover a debug log file that cannot be opened


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.1 05-Sep-2020 rillig

make(1): add tests for each debug option