Subject: bug#71895: Test failure in Coreutils 9.4 [During LFS Build]

From: 0xn00dle <[email-masked]>
Date: Tue, 02 Jul 2024 01:05:51 +0000

Hello,

While running the test for Coreutils during my LFS build (Chapter 8.57 Coreutils-9.4: https://www.linuxfromscratch.org/lfs/view/12.1/chapter08/coreutils.html), I encountered a potential bug and the test recommended I report it.

LFS 12.1 Build, on Pop_OS! Host System
Coreutils Verson: 9.4
Kernel: 6.8.0-76060800daily20240311-generic
Architecture: x86_64

It occurred after running:

su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"

The fail details:

FAIL: tests/tty/tty
===================

++ initialcwd=/sources/coreutils-9.4
+++ testdirprefix
+++ printf gt
++ pfx=gt
+++ mktempd /sources/coreutils-9.4 gt-tty.sh.XXXX
+++ case $# in
+++ destdir=/sources/coreutils-9.4
+++ template=gt-tty.sh.XXXX
+++ MAXTRIES=4
+++ case $destdir in
+++ destdir_slash=/sources/coreutils-9.4/
+++ case $template in
++++ unset TMPDIR
+++ d=/sources/coreutils-9.4/gt-tty.sh.xcFx
+++ case $d in
+++ :
+++ test -d /sources/coreutils-9.4/gt-tty.sh.xcFx
++++ ls -dgo /sources/coreutils-9.4/gt-tty.sh.xcFx
+++ perms='drwx------ 2 4096 Jul 1 18:52 /sources/coreutils-9.4/gt-tty.sh.xcFx'
+++ case $perms in
+++ :
+++ echo /sources/coreutils-9.4/gt-tty.sh.xcFx
+++ return
--
tty: extra operand 'a'
Try 'tty --help' for more information.
+ returns 2 tty -s a
tty: extra operand 'a'
Try 'tty --help' for more information.
+ test -w /dev/full
+ test -c /dev/full
+ test -t 0
+ returns 3 tty
tty: write error: No space left on device
+ returns 3 tty
tty: write error: No space left on device
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ removetmp
+ _st=1
+ cleanup
+ :
+ test '' = yes
+ cd /sources/coreutils-9.4
+ chmod -R u+rwx /sources/coreutils-9.4/gt-tty.sh.xcFx
+ rm -rf /sources/coreutils-9.4/gt-tty.sh.xcFx
+ exit 1FAIL tests/tty/tty.sh (exit status: 1)

I applied coreutils-9.4-il8n-1.patch and a fix for a vulnerability in the split utility prior to the test.

Best,

Noelle