bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
To: 62542@debbugs.gnu.org
Subject: bug#62542: coreutils-9.2: Failing tests on Adélie Linux
Date: Thu, 30 Mar 2023 03:20:48 -0500	[thread overview]
Message-ID: <1F913CE3-E29B-4033-A98C-9B008909DDFF@Wilcox-Tech.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]

Hello,

While updating coreutils to 9.2 on Adélie Linux, I’ve run into a few
interesting corner-cases in the test suite.  As a note, our distribution
is using musl as the libc.

1. `tests/misc/csplit-heap.sh` fails when /bin/sh is Bash

I actually saw this on 9.1 as well, but I only saw it on one system and
considered it a fluke since our auto builder infrastructure didn’t see
the issue.  Seeing it again in 9.2 made me look deeper, and it turns out
that when /bin/sh is a symlink to /bin/bash, the test fails with:

./tests/misc/csplit-heap.sh: xmalloc: cannot allocate 16085 bytes

When /bin/sh is a symlink to /bin/dash, the test no longer fails.
However:


2. `tests/misc/tee.sh` fails when /bin/sh is Dash and `make` is run
under Zsh

When running the test suite from my default Zsh environment, and when
/bin/sh is a symlink to /bin/dash, I receive an error when running the
tee test.

If:

- /bin/sh is a symlink to /bin/bash; OR if

- /bin/sh is a symlink to /bin/dash, and
- make is launched from a Bash or Dash shell, *not* a Zsh shell,

Then the test passes.


Both test runs with the respective failures have generated useful log
files, which are attached.  I don’t know if this is actually a bug in
the coreutils test suite, or if the bugs perhaps lie in the shells.

Best,
-A.

--
A. Wilcox (they/them)
SW Engineering: C/C++, DevOps, POSIX
Wilcox Technologies Inc.


[-- Attachment #2: coreutils-9.2-test-failure-csplit-heap.log --]
[-- Type: application/octet-stream, Size: 6904 bytes --]

FAIL: tests/misc/csplit-heap
============================

++ initial_cwd_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2 gt-csplit-heap.sh.XXXX
+++ case $# in
+++ destdir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+++ template_=gt-csplit-heap.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
+++ case $d in
+++ :
+++ test -d /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
++++ ls -dgo /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
+++ perms='drwx------ 2 4096 Mar 30 02:43 /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk'
+++ case $perms in
+++ :
+++ echo /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
+++ return
++ test_dir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
++ cd /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
++ 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=
++ sep_=
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/local/games/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/games/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
++ sep_=:
++ IFS=' 	
'
++ PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src
+ case $abs_path_dir_ in
+ PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src:/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
+ create_exe_shims_ /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ csplit
+ require_built_ csplit
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env csplit --version
csplit (GNU coreutils) 9.2
Packaged by Adélie
Copyright (C) 2023 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 Stuart Kemp and David MacKenzie.
+ echo y
+ echo n
++ get_min_ulimit_v_ csplit -z f %n%1
++ 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 csplit -z f %n%1
++ local v
++ v=5000
++ shift
++ local prev_v
++ prev_v=5000
+++ seq 4000 -1000 1000
++ for v in $( seq $(($prev_v-1000)) -1000 1000 )
++ ulimit_supported_ 4000 csplit -z f %n%1
++ local v
++ v=4000
++ shift
++ prev_v=4000
++ for v in $( seq $(($prev_v-1000)) -1000 1000 )
++ ulimit_supported_ 3000 csplit -z f %n%1
++ local v
++ v=3000
++ shift
++ prev_v=3000
++ for v in $( seq $(($prev_v-1000)) -1000 1000 )
++ ulimit_supported_ 2000 csplit -z f %n%1
++ local v
++ v=2000
++ shift
++ prev_v=2000
++ for v in $( seq $(($prev_v-1000)) -1000 1000 )
++ ulimit_supported_ 1000 csplit -z f %n%1
++ local v
++ v=1000
++ shift
++ ret_v=2004
++ echo 2004
++ return 0
+ vm=2004
+ ulimit -v 3004
+ csplit -z - %n%1
+ yes
./tests/misc/csplit-heap.sh: xmalloc: cannot allocate 512 bytes
./tests/misc/csplit-heap.sh: xmalloc: cannot allocate 512 bytes
+ head -n2500000
./tests/misc/csplit-heap.sh: xmalloc: cannot allocate 512 bytes
+ echo n
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+ chmod -R u+rwx /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
+ rm -rf /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-csplit-heap.sh.oAdk
+ exit 1
FAIL tests/misc/csplit-heap.sh (exit status: 1)

[-- Attachment #3: coreutils-9.2-test-failure-tee.log --]
[-- Type: application/octet-stream, Size: 13483 bytes --]

FAIL: tests/misc/tee
====================

+ initial_cwd_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2 gt-tee.sh.XXXX
+ destdir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+ template_=gt-tee.sh.XXXX
+ MAX_TRIES_=4
+ destdir_slash_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/
+ unset TMPDIR
+ d=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ :
+ test -d /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ ls -dgo /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ perms=drwx------ 2 4096 Mar 30 03:04 /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ :
+ echo /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ return
+ test_dir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ cd /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ srcdir=../.
+ builddir=..
+ export srcdir builddir
+ gl_init_sh_nl_=

+ IFS= 	

+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ expr 15 + 128
+ eval trap 'Exit 143' 15
+ trap Exit 143 15
+ saved_IFS= 	

+ IFS=:
+ new_PATH=
+ sep_=
+ test -d /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src
+ sep_=:
+ test -d /usr/local/bin/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin
+ sep_=:
+ test -d /usr/bin/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin
+ sep_=:
+ test -d /bin/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin
+ sep_=:
+ test -d /usr/local/games/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games
+ sep_=:
+ test -d /usr/games/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ sep_=:
+ test -d /sbin/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin
+ sep_=:
+ test -d /usr/sbin/.
+ new_PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
+ sep_=:
+ IFS= 	

+ PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
+ export PATH
+ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 != 0
+ path_dir_=./src
+ abs_path_dir_=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src
+ PATH=/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src:/home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/src:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
+ create_exe_shims_ /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/./src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ print_ver_ tee
+ require_built_ tee
+ skip_=no
+ test no = yes
+ test yes = yes
+ local i
+ env tee --version
tee (GNU coreutils) 9.2
Packaged by Adélie
Copyright (C) 2023 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 Mike Parker, Richard M. Stallman, and David MacKenzie.
+ echo line
+ seq 0
+ files=
+ rm -f
+ tee
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ seq 1
+ files=1
+ rm -f 1
+ tee 1
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ compare_ sample 1
+ diff -u sample 1
+ seq 2
+ files=1
2
+ rm -f 1 2
+ tee 1 2
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ compare_ sample 1
+ diff -u sample 1
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ compare_ sample 2
+ diff -u sample 2
+ seq 12
+ files=1
2
3
4
5
6
7
8
9
10
11
12
+ rm -f 1 2 3 4 5 6 7 8 9 10 11 12
+ tee 1 2 3 4 5 6 7 8 9 10 11 12
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ compare_ sample 1
+ diff -u sample 1
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ compare_ sample 2
+ diff -u sample 2
+ compare sample 3
+ compare_dev_null_ sample 3
+ test 2 = 2
+ test xsample = x/dev/null
+ test x3 = x/dev/null
+ return 2
+ compare_ sample 3
+ diff -u sample 3
+ compare sample 4
+ compare_dev_null_ sample 4
+ test 2 = 2
+ test xsample = x/dev/null
+ test x4 = x/dev/null
+ return 2
+ compare_ sample 4
+ diff -u sample 4
+ compare sample 5
+ compare_dev_null_ sample 5
+ test 2 = 2
+ test xsample = x/dev/null
+ test x5 = x/dev/null
+ return 2
+ compare_ sample 5
+ diff -u sample 5
+ compare sample 6
+ compare_dev_null_ sample 6
+ test 2 = 2
+ test xsample = x/dev/null
+ test x6 = x/dev/null
+ return 2
+ compare_ sample 6
+ diff -u sample 6
+ compare sample 7
+ compare_dev_null_ sample 7
+ test 2 = 2
+ test xsample = x/dev/null
+ test x7 = x/dev/null
+ return 2
+ compare_ sample 7
+ diff -u sample 7
+ compare sample 8
+ compare_dev_null_ sample 8
+ test 2 = 2
+ test xsample = x/dev/null
+ test x8 = x/dev/null
+ return 2
+ compare_ sample 8
+ diff -u sample 8
+ compare sample 9
+ compare_dev_null_ sample 9
+ test 2 = 2
+ test xsample = x/dev/null
+ test x9 = x/dev/null
+ return 2
+ compare_ sample 9
+ diff -u sample 9
+ compare sample 10
+ compare_dev_null_ sample 10
+ test 2 = 2
+ test xsample = x/dev/null
+ test x10 = x/dev/null
+ return 2
+ compare_ sample 10
+ diff -u sample 10
+ compare sample 11
+ compare_dev_null_ sample 11
+ test 2 = 2
+ test xsample = x/dev/null
+ test x11 = x/dev/null
+ return 2
+ compare_ sample 11
+ diff -u sample 11
+ compare sample 12
+ compare_dev_null_ sample 12
+ test 2 = 2
+ test xsample = x/dev/null
+ test x12 = x/dev/null
+ return 2
+ compare_ sample 12
+ diff -u sample 12
+ seq 13
+ files=1
2
3
4
5
6
7
8
9
10
11
12
13
+ rm -f 1 2 3 4 5 6 7 8 9 10 11 12 13
+ tee 1 2 3 4 5 6 7 8 9 10 11 12 13
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ compare_ sample 1
+ diff -u sample 1
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ compare_ sample 2
+ diff -u sample 2
+ compare sample 3
+ compare_dev_null_ sample 3
+ test 2 = 2
+ test xsample = x/dev/null
+ test x3 = x/dev/null
+ return 2
+ compare_ sample 3
+ diff -u sample 3
+ compare sample 4
+ compare_dev_null_ sample 4
+ test 2 = 2
+ test xsample = x/dev/null
+ test x4 = x/dev/null
+ return 2
+ compare_ sample 4
+ diff -u sample 4
+ compare sample 5
+ compare_dev_null_ sample 5
+ test 2 = 2
+ test xsample = x/dev/null
+ test x5 = x/dev/null
+ return 2
+ compare_ sample 5
+ diff -u sample 5
+ compare sample 6
+ compare_dev_null_ sample 6
+ test 2 = 2
+ test xsample = x/dev/null
+ test x6 = x/dev/null
+ return 2
+ compare_ sample 6
+ diff -u sample 6
+ compare sample 7
+ compare_dev_null_ sample 7
+ test 2 = 2
+ test xsample = x/dev/null
+ test x7 = x/dev/null
+ return 2
+ compare_ sample 7
+ diff -u sample 7
+ compare sample 8
+ compare_dev_null_ sample 8
+ test 2 = 2
+ test xsample = x/dev/null
+ test x8 = x/dev/null
+ return 2
+ compare_ sample 8
+ diff -u sample 8
+ compare sample 9
+ compare_dev_null_ sample 9
+ test 2 = 2
+ test xsample = x/dev/null
+ test x9 = x/dev/null
+ return 2
+ compare_ sample 9
+ diff -u sample 9
+ compare sample 10
+ compare_dev_null_ sample 10
+ test 2 = 2
+ test xsample = x/dev/null
+ test x10 = x/dev/null
+ return 2
+ compare_ sample 10
+ diff -u sample 10
+ compare sample 11
+ compare_dev_null_ sample 11
+ test 2 = 2
+ test xsample = x/dev/null
+ test x11 = x/dev/null
+ return 2
+ compare_ sample 11
+ diff -u sample 11
+ compare sample 12
+ compare_dev_null_ sample 12
+ test 2 = 2
+ test xsample = x/dev/null
+ test x12 = x/dev/null
+ return 2
+ compare_ sample 12
+ diff -u sample 12
+ compare sample 13
+ compare_dev_null_ sample 13
+ test 2 = 2
+ test xsample = x/dev/null
+ test x13 = x/dev/null
+ return 2
+ compare_ sample 13
+ diff -u sample 13
+ tee -
+ compare sample ./-
+ compare_dev_null_ sample ./-
+ test 2 = 2
+ test xsample = x/dev/null
+ test x./- = x/dev/null
+ return 2
+ compare_ sample ./-
+ diff -u sample ./-
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ sample out
+ diff -u sample out
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ test -w /dev/full
+ test -c /dev/full
+ yes
+ returns_ 1 timeout 10 tee /dev/full
+ wc -l
+ test 2 = 2
+ seq 10000
+ returns_ 1 tee /dev/full out2
+ cmp multi_read out1
+ cmp multi_read out2
+ wc -l
+ test 1 = 1
+ returns_ 1 tee out1 out2
+ cmp multi_read out1
+ cmp multi_read out2
+ wc -l
+ test 1 = 1
+ retry_delay_ tee_exited .1 7
+ local test_func=tee_exited
+ + local:
+ timeout 10 tee -p
 init_delay=.1
+ local max_n_tries=7
+ shift 3
+ local attempt=1
+ local num_sleeps=1
+ local time_fail
+ test 1 -le 7
+ mawk -v n=1 -v s=.1 BEGIN { print s * n }
+ + localtouch delay=0.1 tee.exited

+ tee_exited 0.1
+ sleep 0.1
+ test -f tee.exited
+ time_fail=0
+ break
+ test 0 = 0
+ wc -l
+ test 0 = 0
+ test -f tee.exited
+ touch file.ro
+ chmod a-w file.ro
+ returns_ 1 tee -p file.ro
tee: file.ro: Permission denied
+ mkfifo_or_skip_ fifo
+ test 1 = 1
+ mkfifo fifo
+ pid=48407
+ dd count=20 bs=100K if=/dev/zero status=none
+ read_fifo_delayed
+ + sleepdd .1 count=0
 oflag=nonblock status=none
+ tee
+ timeout 10 dd of=/dev/null status=none
+ test -f tee.fail
+ read_fifo
./tests/misc/tee.sh: 107: cannot create fifo: Interrupted system call
+ pipe_status=2
+ read_fifo
+ timeout+  10timeout dd 10 count=1 dd if=fifo count=1 of=/dev/null if=fifo status=none of=/dev/null
 status=none
+ yes
+ returns_ 2 timeout 10 tee ./e/noent
+ fail=1
+ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ timeout 10 tee -p
+ wc -l
+ test 0 = 0
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=warn
+ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=exit /dev/null
+ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=exit ./e/noent
+ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ timeout 10 tee --output-error=exit-nopipe
+ wc -l
+ test 0 = 0
+ wait
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ kill 48407
+ test  = yes
+ cd /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2
+ chmod -R u+rwx /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ rm -rf /home/awilcox/Code/awilfox/user-next/system/coreutils/src/coreutils-9.2/gt-tee.sh.fS3K
+ exit 1
FAIL tests/misc/tee.sh (exit status: 1)

             reply	other threads:[~2023-03-30 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-30  8:20 A. Wilcox [this message]
2023-03-30 14:48 ` bug#62542: coreutils-9.2: Failing tests on Adélie Linux Pádraig Brady
2023-03-31  6:27   ` A. Wilcox
2023-03-31 11:01     ` Pádraig Brady

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1F913CE3-E29B-4033-A98C-9B008909DDFF@Wilcox-Tech.com \
    --to=awilcox@wilcox-tech.com \
    --cc=62542@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).