William Bader wrote:
> CentOS 7 has a failure in "tests/fold/fold-zero-width" about "fold didn't 
> diagnose ENOSPC".

I see this test failure as well, on
  - CentOS 5
  - CentOS 6
  - CentOS 7

Here's my log file from CentOS 7.

=========================================================
   GNU coreutils 9.7.321-dc30e: ./tests/test-suite.log
=========================================================

# TOTAL: 674
# PASS:  558
# SKIP:  114
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

System information (uname -a): Linux 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64
Distribution information (/etc/os-release):
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"

.. contents:: :depth: 2

FAIL: tests/fold/fold-zero-width
================================

++ initial_cwd_=/home/bruno/coreutils-9.7.321-dc30e/build-64
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/bruno/coreutils-9.7.321-dc30e/build-64 gt-fold-zero-width.sh.XXXX
+++ case $# in
+++ destdir_=/home/bruno/coreutils-9.7.321-dc30e/build-64
+++ template_=gt-fold-zero-width.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/bruno/coreutils-9.7.321-dc30e/build-64/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
+++ case $d in
+++ :
+++ test -d /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
++++ ls -dgo /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
+++ perms='drwx------ 2 4096 Sep 18 12:12 /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ'
+++ case $perms in
+++ :
+++ echo /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
+++ return
++ test_dir_=/home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
++ cd /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /home/bruno/coreutils-9.7.321-dc30e/build-64/src/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /home/bruno/inst-x86_64-64/bin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/sbin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
++ IFS=' 	
'
++ PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/bruno/coreutils-9.7.321-dc30e/build-64/./src
+ case $abs_path_dir_ in
+ PATH=/home/bruno/coreutils-9.7.321-dc30e/build-64/./src:/home/bruno/coreutils-9.7.321-dc30e/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
+ create_exe_shims_ /home/bruno/coreutils-9.7.321-dc30e/build-64/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ fold printf
+ require_built_ fold printf
+ skip_=no
+ for i in '"$@"'
+ case " $built_programs " in
+ for i in '"$@"'
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in '$*'
+ env fold --version
fold (GNU coreutils) 9.7.321-dc30e
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
+ for i in '$*'
+ env printf --version
printf (GNU coreutils) 9.7.321-dc30e
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
+ getlimits_
++ getlimits
+ eval CHAR_MAX=127 CHAR_OFLOW=128 CHAR_MIN=-128 CHAR_UFLOW=-129 SCHAR_MAX=127 SCHAR_OFLOW=128 SCHAR_MIN=-128 SCHAR_UFLOW=-129 UCHAR_MAX=255 UCHAR_OFLOW=256 SHRT_MAX=32767 SHRT_OFLOW=32768 SHRT_MIN=-32768 SHRT_UFLOW=-32769 INT_MAX=2147483647 INT_OFLOW=2147483648 INT_MIN=-2147483648 INT_UFLOW=-2147483649 UINT_MAX=4294967295 UINT_OFLOW=4294967296 LONG_MAX=9223372036854775807 LONG_OFLOW=9223372036854775808 LONG_MIN=-9223372036854775808 LONG_UFLOW=-9223372036854775809 ULONG_MAX=18446744073709551615 ULONG_OFLOW=18446744073709551616 SIZE_MAX=18446744073709551615 SIZE_OFLOW=18446744073709551616 SSIZE_MAX=9223372036854775807 SSIZE_OFLOW=9223372036854775808 SSIZE_MIN=-9223372036854775808 SSIZE_UFLOW=-9223372036854775809 TIME_T_MAX=9223372036854775807 TIME_T_OFLOW=9223372036854775808 TIME_T_MIN=-9223372036854775808 TIME_T_UFLOW=-9223372036854775809 UID_T_MAX=4294967295 UID_T_OFLOW=4294967296 GID_T_MAX=4294967295 GID_T_OFLOW=4294967296 PID_T_MAX=2147483647 PID_T_OFLOW=2147483648 PID_T_MIN=-2147483648 PID_T_UFLOW=-2147483649 OFF_T_MAX=9223372036854775807 OFF_T_OFLOW=9223372036854775808 OFF_T_MIN=-9223372036854775808 OFF_T_UFLOW=-9223372036854775809 INTMAX_MAX=9223372036854775807 INTMAX_OFLOW=9223372036854775808 INTMAX_MIN=-9223372036854775808 INTMAX_UFLOW=-9223372036854775809 UINTMAX_MAX=18446744073709551615 UINTMAX_OFLOW=18446744073709551616 FLT_MIN=1.1754944e-38 FLT_MAX=3.4028235e+38 DBL_MIN=2.2250738585072014e-308 DBL_MAX=1.7976931348623157e+308 LDBL_MIN=3.3621031431120935063e-4932 LDBL_MAX=1.189731495357231765e+4932 IO_BUFSIZE=262144
++ CHAR_MAX=127
++ CHAR_OFLOW=128
++ CHAR_MIN=-128
++ CHAR_UFLOW=-129
++ SCHAR_MAX=127
++ SCHAR_OFLOW=128
++ SCHAR_MIN=-128
++ SCHAR_UFLOW=-129
++ UCHAR_MAX=255
++ UCHAR_OFLOW=256
++ SHRT_MAX=32767
++ SHRT_OFLOW=32768
++ SHRT_MIN=-32768
++ SHRT_UFLOW=-32769
++ INT_MAX=2147483647
++ INT_OFLOW=2147483648
++ INT_MIN=-2147483648
++ INT_UFLOW=-2147483649
++ UINT_MAX=4294967295
++ UINT_OFLOW=4294967296
++ LONG_MAX=9223372036854775807
++ LONG_OFLOW=9223372036854775808
++ LONG_MIN=-9223372036854775808
++ LONG_UFLOW=-9223372036854775809
++ ULONG_MAX=18446744073709551615
++ ULONG_OFLOW=18446744073709551616
++ SIZE_MAX=18446744073709551615
++ SIZE_OFLOW=18446744073709551616
++ SSIZE_MAX=9223372036854775807
++ SSIZE_OFLOW=9223372036854775808
++ SSIZE_MIN=-9223372036854775808
++ SSIZE_UFLOW=-9223372036854775809
++ TIME_T_MAX=9223372036854775807
++ TIME_T_OFLOW=9223372036854775808
++ TIME_T_MIN=-9223372036854775808
++ TIME_T_UFLOW=-9223372036854775809
++ UID_T_MAX=4294967295
++ UID_T_OFLOW=4294967296
++ GID_T_MAX=4294967295
++ GID_T_OFLOW=4294967296
++ PID_T_MAX=2147483647
++ PID_T_OFLOW=2147483648
++ PID_T_MIN=-2147483648
++ PID_T_UFLOW=-2147483649
++ OFF_T_MAX=9223372036854775807
++ OFF_T_OFLOW=9223372036854775808
++ OFF_T_MIN=-9223372036854775808
++ OFF_T_UFLOW=-9223372036854775809
++ INTMAX_MAX=9223372036854775807
++ INTMAX_OFLOW=9223372036854775808
++ INTMAX_MIN=-9223372036854775808
++ INTMAX_UFLOW=-9223372036854775809
++ UINTMAX_MAX=18446744073709551615
++ UINTMAX_OFLOW=18446744073709551616
++ FLT_MIN=1.1754944e-38
++ FLT_MAX=3.4028235e+38
++ DBL_MIN=2.2250738585072014e-308
++ DBL_MAX=1.7976931348623157e+308
++ LDBL_MIN=3.3621031431120935063e-4932
++ LDBL_MAX=1.189731495357231765e+4932
++ IO_BUFSIZE=262144
+ test 2147483647
+ IO_BUFSIZE_TIMES2=524288
+ fold
+ head -c 524288 /dev/zero
++ wc -l
+ test 0 -eq 0
+ fold --characters
+ head -c 524288 /dev/zero
++ wc -l
+ test 6553 -eq 6553
+ test fr_FR.UTF-8 '!=' none
+ LC_ALL=fr_FR.UTF-8
+ export LC_ALL
+ head -n 524288
+ tr -d '\n'
++ env printf '\u200B'
+ yes $'\342\200\213'
+ fold inp
++ wc -l
+ test 0 -eq 0
+ fold --characters inp
++ wc -l
+ test 6553 -eq 6553
+ test -w /dev/full
+ test -c /dev/full
++ get_min_ulimit_v_ fold /dev/null
++ local v
++ local page_size
+++ getconf PAGESIZE
++ page_size=4096
++ page_size=4
+++ seq 5000 5000 50000
++ for v in '$( seq 5000 5000 50000 )'
++ ulimit_supported_ 5000 fold /dev/null
++ local v
++ v=5000
++ shift
+++ date +%s
++ local ulimit_start_=1758190335
++ ret=0
+++ date +%s
++ local ulimit_end_=1758190335
++ test 0 -ge 10
++ return 0
++ ret=0
++ test 0 = 77
++ test 0 = 0
++ local prev_v
++ prev_v=5000
+++ seq 4000 -1000 1000
++ for v in '$( seq $(($prev_v-1000)) -1000 1000 )'
++ ulimit_supported_ 4000 fold /dev/null
++ local v
++ v=4000
++ shift
+++ date +%s
++ local ulimit_start_=1758190335
++ ret=127
+++ date +%s
++ local ulimit_end_=1758190335
++ test 0 -ge 10
++ return 127
++ ret=127
++ test 127 = 77
++ test 127 = 0
++ ret_v=5004
++ echo 5004
++ return 0
+ vm=5004
+ for c in ''\''\n'\''' ''\''\0'\''' ''\''\303'\'''
+ tr '\0' '\n'
+ timeout 10 /bin/sh -c '(ulimit -v 13004 && fold 2>err >/dev/full)'
/bin/sh: xmalloc: cannot allocate 17642 bytes (0 bytes allocated)
+ test 2 = 124
+ grep space err
grep: err: Aucun fichier ou dossier de ce type
+ fail=1
+ cat err
cat: err: Aucun fichier ou dossier de ce type
+ echo 'fold didn'\''t diagnose ENOSPC'
fold didn't diagnose ENOSPC
+ for c in ''\''\n'\''' ''\''\0'\''' ''\''\303'\'''
+ tr '\0' '\0'
+ timeout 10 /bin/sh -c '(ulimit -v 13004 && fold 2>err >/dev/full)'
/bin/sh: xmalloc: cannot allocate 17642 bytes (0 bytes allocated)
+ test 2 = 124
+ grep space err
grep: err: Aucun fichier ou dossier de ce type
+ fail=1
+ cat err
cat: err: Aucun fichier ou dossier de ce type
+ echo 'fold didn'\''t diagnose ENOSPC'
fold didn't diagnose ENOSPC
+ for c in ''\''\n'\''' ''\''\0'\''' ''\''\303'\'''
+ timeout 10 /bin/sh -c '(ulimit -v 13004 && fold 2>err >/dev/full)'
+ tr '\0' '\303'
/bin/sh: xmalloc: cannot allocate 17642 bytes (0 bytes allocated)
+ test 2 = 124
+ grep space err
grep: err: Aucun fichier ou dossier de ce type
+ fail=1
+ cat err
cat: err: Aucun fichier ou dossier de ce type
+ echo 'fold didn'\''t diagnose ENOSPC'
fold didn't diagnose ENOSPC
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/bruno/coreutils-9.7.321-dc30e/build-64
+ chmod -R u+rwx /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
+ rm -rf /home/bruno/coreutils-9.7.321-dc30e/build-64/gt-fold-zero-width.sh.Z6KJ
+ exit 1
FAIL tests/fold/fold-zero-width.sh (exit status: 1)

Reply via email to