On CentOS 6, there is a test failure:

FAIL: tests/tail/tail-c.sh

Log is attached. The command that fails is:

  timeout --verbose 1 tail -c 4096 /dev/urandom

And indeed, I can reproduce it manually:

  $ timeout --verbose 1 src/tail -c 4096 /dev/urandom
  timeout: Unrecognized option '--verbose'
  Try `timeout --help' for more information.

  $ src/timeout --verbose 1 src/tail -c 4096 /dev/urandom
  timeout: sending signal TERM to command 'src/tail'
  $ echo $?
  124

====================================================
   GNU coreutils snapshot: ./tests/test-suite.log
====================================================

# TOTAL: 657
# PASS:  538
# SKIP:  118
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

System information (uname -a): Linux 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64
Distribution information (/etc/issue):
CentOS release 6.9 (Final)
Kernel \r on an \m


.. contents:: :depth: 2

FAIL: tests/tail/tail-c
=======================

++ initial_cwd_=/home/bruno/coreutils-snapshot/build-64
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/bruno/coreutils-snapshot/build-64 gt-tail-c.sh.XXXX
+++ case $# in
+++ destdir_=/home/bruno/coreutils-snapshot/build-64
+++ template_=gt-tail-c.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/bruno/coreutils-snapshot/build-64/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
+++ case $d in
+++ :
+++ test -d /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
++++ ls -dgo /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
+++ perms='drwx------ 2 4096 Jan 16 17:36 /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU'
+++ case $perms in
+++ :
+++ echo /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
+++ return
++ test_dir_=/home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
++ cd /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
++ 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-snapshot/build-64/src/.
++ new_PATH=/home/bruno/coreutils-snapshot/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-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/lib64/qt-3.3/bin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/sbin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin
++ for dir in '$PATH'
++ IFS=' 	
'
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
++ IFS=' 	
'
++ PATH=/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/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-snapshot/build-64/./src
+ case $abs_path_dir_ in
+ PATH=/home/bruno/coreutils-snapshot/build-64/./src:/home/bruno/coreutils-snapshot/build-64/src:/home/bruno/inst-x86_64-64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+ create_exe_shims_ /home/bruno/coreutils-snapshot/build-64/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ tail
+ require_built_ tail
+ skip_=no
+ for i in '"$@"'
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in '$*'
+ env tail --version
tail (GNU coreutils) snapshot
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 Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
+ for file in /proc/version /sys/kernel/profiling
+ test -r /proc/version
+ cp -f /proc/version copy
+ tail -c -1 copy
+ tail -c -1 /proc/version
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
+ for file in /proc/version /sys/kernel/profiling
+ test -r /sys/kernel/profiling
+ cp -f /sys/kernel/profiling copy
+ tail -c -1 copy
+ tail -c -1 /sys/kernel/profiling
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
+ tail -c3
+ printf 123456
+ printf 456
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
+ head -c 4096 /dev/zero
+ tail -c 4096 /dev/zero
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
+ test -r /dev/urandom
+ timeout --verbose 1 tail -c 4096 /dev/urandom
+ case $? in
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/bruno/coreutils-snapshot/build-64
+ chmod -R u+rwx /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
+ rm -rf /home/bruno/coreutils-snapshot/build-64/gt-tail-c.sh.nthU
+ exit 1
FAIL tests/tail/tail-c.sh (exit status: 1)

Reply via email to