From: Chen Qi Date: Thu, 15 May 2025 08:44:33 +0000 (+0800) Subject: tests/ts/kill/decode: avoid using shell built-in kill command X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2eeccf36542d506b660641a07a44f3976772897;p=thirdparty%2Futil-linux.git tests/ts/kill/decode: avoid using shell built-in kill command This test case should do the same as other kill test cases, avoiding using shell built-in kill command. Signed-off-by: Chen Qi --- diff --git a/tests/ts/kill/decode b/tests/ts/kill/decode index 03bc25ff6..57149899e 100755 --- a/tests/ts/kill/decode +++ b/tests/ts/kill/decode @@ -18,6 +18,11 @@ TS_DESC="decode functions" . "$TS_TOPDIR/functions.sh" ts_init "$*" +# make sure we do not use shell built-in command +if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then + TS_CMD_KILL="$(which kill)" +fi + ts_skip_qemu_user ts_check_test_command "$TS_CMD_KILL"