--- - branch: MAIN date: Fri Aug 28 18:16:22 UTC 2020 files: - new: '1.2' old: '1.1' path: src/usr.bin/make/unit-tests/cmd-interrupt.exp pathrev: src/usr.bin/make/unit-tests/cmd-interrupt.exp@1.2 type: modified - new: '1.2' old: '1.1' path: src/usr.bin/make/unit-tests/cmd-interrupt.mk pathrev: src/usr.bin/make/unit-tests/cmd-interrupt.mk@1.2 type: modified id: 20200828T181622Z.132488017763b7977810e906313770c15e5375fc log: | 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. module: src subject: 'CVS commit: src/usr.bin/make/unit-tests' unixtime: '1598638582' user: rillig