]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (kill) do not use shell build-in
authorKarel Zak <kzak@redhat.com>
Mon, 4 Mar 2019 16:28:15 +0000 (17:28 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Mar 2019 16:28:15 +0000 (17:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.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

index 2596ef02b6bfb82393e90bbf7c59a1989bde6841..7a0c9593193d6fb5f9647427340472e6c373837a 100755 (executable)
@@ -20,6 +20,11 @@ ts_init "$*"
 
 ts_skip_nonroot
 
+# make sure we do not use shell built-in command
+if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
+       TS_CMD_KILL="/bin/kill"
+fi
+
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"
 
index cde55c9ed83538912d8a7ad2f6a5cc6e5b27ab4c..fd2aaafe0a0c03167e83eeb16fa5bb6ee3da0e47 100755 (executable)
@@ -18,6 +18,11 @@ TS_DESC="name_to_number"
 . "$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="/bin/kill"
+fi
+
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"
 
index 2c82bbccc5da4babae728628fb8a2acb3610616e..ee9e52f47f8ef5925b924735caaccb17a4b126eb 100755 (executable)
@@ -18,6 +18,11 @@ TS_DESC="options"
 . "$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="/bin/kill"
+fi
+
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"
 
index c6187f192ddb8b5ce8cd44ee6165cb952f981c8b..2a2a838ee886284d8d61cc3bc85eea7a2fc06e01 100755 (executable)
@@ -18,6 +18,11 @@ TS_DESC="print_pid"
 . "$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="/bin/kill"
+fi
+
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"
 
index 992acf7a625a02ba1523fad5148b318f9406f780..4727cbfc4ff677531bda9b018b3dd7fd05a79b33 100755 (executable)
@@ -18,6 +18,11 @@ TS_DESC="queue"
 . "$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="/bin/kill"
+fi
+
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"