]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: don't hardcode /bin/kill in the kill tests
authorRoss Burton <ross.burton@arm.com>
Tue, 29 Jun 2021 15:34:20 +0000 (16:34 +0100)
committerRoss Burton <ross.burton@arm.com>
Tue, 29 Jun 2021 16:21:53 +0000 (17:21 +0100)
commit93ed220b134cbd38be820c7e502a32d8a2cffcbb
treee2dc9f3c70832859b2384981fcd3a3c428a4e83c
parent5efc31f9d8c7c95a2895e8d10052be11a66ec569
tests: don't hardcode /bin/kill in the kill tests

If the 'kill' test is executed with --use-system-commands, it calls
/bin/kill to avoid the shell's own kill command being invoked.

However, this doesn't work if the kill we want to test isn't in fact in
/bin.  Instead, use $(which kill) to find a kill on the PATH and call
that directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
tests/ts/kill/all_processes
tests/ts/kill/name_to_number
tests/ts/kill/options
tests/ts/kill/print_pid
tests/ts/kill/queue