]> 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)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 09:52:16 +0000 (11:52 +0200)
commit0be381be442e67346f0007b04af904ab01720c8f
treec290a01f8d6f354f1cdd10432471ae34300f8451
parent54da548e021b4682d99d3b66e3c3e386af5816cf
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