Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/cmd-interrupt.mk
RevisionDateAuthorComments
 1.5  13-Jul-2024  rillig tests/make: demonstrate interrupting make in compat mode
 1.4  18-Mar-2023  sjg branches: 1.4.2;
make: handle .PHONY consitently on interrupt

JobDeleteTarget skips .PHONY targets
CompatDeleteTarget should do the same

This addresses https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269663
 1.3  15-Nov-2020  rillig make(1): clean up some tests

Fix some mistakes in comments.

Improve some comments to be easier understandable.

Inline variables that are irrelevant for the test at hand (RUN,
MAKE_CMD).

Remove references to functions and constants that have since been removed
or renamed.
 1.2  28-Aug-2020  rillig make(1): fix test for interrupted command execution

In the first version of this test, I had completely misunderstood the
whole topic.

To test the interrupt, the make process has to be interrupted, not the
shell. This generates the correct message that the target is removed.

The filename for .PHONY targets is removed even though .PHONY targets
usually don't correspond to a file. The message is only printed if
there actually is a corresponding file. That's why this message does
not appear when interrupting "make clean".

Finally, since files get created and removed during a single run of
make, the file cache needs to be disabled. This is done by prefixing
the filenames with "././", see Dir_FindFile.
 1.1  28-Aug-2020  rillig make(1): add test for interrupting a command
 1.4.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed