From faa566372d54f12bc4d89b367e386fc38bf127cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Fri, 28 Nov 2025 17:39:20 +0000 Subject: [PATCH] test: re-enable tests that had a false requirement on coreutils' kill 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 2033429244..031353052e 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 . . "${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 94f53ba780..36dcba2d0a 100755 --- a/tests/timeout/timeout.sh +++ b/tests/timeout/timeout.sh @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src -print_ver_ timeout kill +print_ver_ timeout require_trap_signame_ # no timeout -- 2.47.3