]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63315] tests: Simplify TERM signaling
authorPaul Smith <psmith@gnu.org>
Sun, 6 Nov 2022 19:14:28 +0000 (14:14 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 13 Nov 2022 15:39:48 +0000 (10:39 -0500)
commitdeb4ff272a589d74950e120b800a35e212261f75
treee1351d5713f176b73b74c06aa01a6af883417456
parente80ce6fc90e1dc5da5c538167ac7ad719bb92b89
[SV 63315] tests: Simplify TERM signaling

Tests that try to kill the make process were not behaving as expected
on OpenBSD: the signal was sent from make to its children but the
sleep didn't die.  Something odd about the way the shell treats TERM.
To reduce platform dependencies add "term" to the helper tool and run
that instead of kill / sleep.

* tests/thelp.pl: Add a new operation "term" that takes a PID.
* tests/scripts/features/output-sync: Use it.
* tests/scripts/features/temp_stdin: Ditto.
tests/scripts/features/output-sync
tests/scripts/features/temp_stdin
tests/thelp.pl