Recently we've not built our kill command by default, so reduce test dependence on that.
* tests/sort/sort-compress-proc.sh: `kill -l [exit_status]` is well supported, and is a POSIX requirement. * tests/timeout/timeout.sh: There were actually no kill invocations in this test at all. --- tests/sort/sort-compress-proc.sh | 4 ++-- tests/timeout/timeout.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sort/sort-compress-proc.sh b/tests/sort/sort-compress-proc.sh index 203342924..031353052 100755 --- a/tests/sort/sort-compress-proc.sh +++ b/tests/sort/sort-compress-proc.sh @@ -17,7 +17,7 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src -print_ver_ sort kill +print_ver_ sort expensive_ # Terminate any background processes @@ -58,7 +58,7 @@ chmod +x compress # while not reading all the data presented. PRE_COMPRESS='exit 0' \ sort --compress-program=./compress -S 1k --batch-size=30 ./in ./in > out -test $(env kill -l $?) = 'PIPE' && fail=1 +test $(kill -l $?) = 'PIPE' && fail=1 # "Impatient exit" tests # diff --git a/tests/timeout/timeout.sh b/tests/timeout/timeout.sh index 94f53ba78..36dcba2d0 100755 --- a/tests/timeout/timeout.sh +++ b/tests/timeout/timeout.sh @@ -17,7 +17,7 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src -print_ver_ timeout kill +print_ver_ timeout require_trap_signame_ # no timeout -- 2.51.1
