1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-15 16:26:01 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-11-28 17:39:20 +00:00
parent fc5c7b2e47
commit faa566372d
2 changed files with 3 additions and 3 deletions

View File

@@ -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
#

View File

@@ -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