]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: re-enable tests that had a false requirement on coreutils' kill
authorPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2025 17:39:20 +0000 (17:39 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 29 Nov 2025 12:17:27 +0000 (12:17 +0000)
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
tests/timeout/timeout.sh

index 20334292444c6a2aa8e976809bba5a976c824a12..031353052ee0a1a6f96876687a60678e36e5c32d 100755 (executable)
@@ -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
 #
index 94f53ba7804a822da6552abdd669d585bfdb5e22..36dcba2d0a58a6df4ec55498b1d6bc646d332df1 100755 (executable)
@@ -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