Paul Eggert wrote: > Thanks, I think I see the problem and installed the attached to fix it.
Thanks. I confirm that it fixes the test failure on: - Alpine Linux 3.18, 3.22 - FreeBSD 13.2 - OpenBSD 7.8 - AIX 7.3 But the test still fails on: - Solaris 10 - Solaris 11 OpenIndiana Find attached the new log files.
========================================= gzip snapshot: tests/test-suite.log ========================================= # TOTAL: 31 # PASS: 30 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 System information (uname -a): SunOS 5.10 Generic_147441-19 i86pc i386 .. contents:: :depth: 2 FAIL: pipe-output ================= ++ initial_cwd_=/home/haible/gzip-snapshot/build-x86-64-cc/tests +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /home/haible/gzip-snapshot/build-x86-64-cc/tests gt-pipe-output.XXXX +++ case $# in +++ destdir_=/home/haible/gzip-snapshot/build-x86-64-cc/tests +++ template_=gt-pipe-output.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/home/haible/gzip-snapshot/build-x86-64-cc/tests/ +++ case $template_ in ++++ unset TMPDIR +++ d= ++++ echo gt-pipe-output.XXXX ++++ sed 's/XX*$//' +++ base_template_=gt-pipe-output. ++++ echo gt-pipe-output.XXXX ++++ wc -c +++ template_length_=' 20' ++++ echo gt-pipe-output. ++++ wc -c +++ nx_=' 16' ++++ expr 20 - 16 +++ nx_=4 +++ err_= +++ i_=1 +++ : ++++ rand_bytes_ 4 ++++ n_=4 ++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ++++ dev_rand_=/dev/urandom ++++ test -r /dev/urandom ++++ dd ibs=4 count=1 if=/dev/urandom ++++ LC_ALL=C ++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ++++ return +++ X_=ORRR +++ candidate_dir_=/home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR ++++ mkdir -m 0700 /home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR +++ err_= +++ echo /home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR +++ return ++ test_dir_=/home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR ++ cd /home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR ++ case $srcdir in ++ srcdir=../../../tests ++ 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/haible/gzip-snapshot/build-x86-64-cc/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /opt/studio/SOS11/SUNWspro/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/ccs/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sbin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /sbin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/ccs/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/dt/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/openwin/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /opt/SUNWspro/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /opt/bop/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /opt/csw/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin:/opt/csw/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sfw/bin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin:/opt/csw/bin:/usr/sfw/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sfw/sbin/. ++ new_PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin:/opt/csw/bin:/usr/sfw/bin:/usr/sfw/sbin ++ IFS=' ' ++ PATH=/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin:/opt/csw/bin:/usr/sfw/bin:/usr/sfw/sbin ++ export PATH ++ trap remove_tmp_ EXIT + path_prepend_ .. + test 1 '!=' 0 + path_dir_=.. + case $path_dir_ in + abs_path_dir_=/home/haible/gzip-snapshot/build-x86-64-cc/tests/.. + case $abs_path_dir_ in + PATH=/home/haible/gzip-snapshot/build-x86-64-cc/tests/..:/home/haible/gzip-snapshot/build-x86-64-cc:/opt/studio/SOS11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/bop/bin:/opt/csw/bin:/usr/sfw/bin:/usr/sfw/sbin + create_exe_shims_ /home/haible/gzip-snapshot/build-x86-64-cc/tests/.. + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + sleep 0.01 sleep: bad character in argument + sleep_amount=1 + echo a + echo b + gzip -k a + gzip -k b + for trap_pipe in trap : + get_underlying_status 'cat <a.gz' 1 ++ : ++ trap '' PIPE ++ sleep 1 ++ eval 'cat <a.gz' +++ cat cat: output error (0/24 characters written) Broken pipe ++ echo 2 + underlying_status=2 + test 1 -le 2 + test 2 -le 127 + underlying_status=1 + cat_status=1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ gunzip gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ ++ trap '' PIPE : ++ sleep 1 ++ gunzip -q ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ gzip -d gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ gzip -dq ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ zcat gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ zcmp - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'cmp - b <a' 2 ++ : ++ trap '' PIPE ++ sleep 1 ++ eval 'cmp - b <a' +++ cmp - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ sleep 1 ++ : ++ zdiff - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'diff - b <a' 2 ++ trap '' PIPE ++ sleep 1 ++ : ++ eval 'diff - b <a' +++ diff - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ trap '' PIPE ++ ++ sleep 1 : ++ zgrep a ggrep: write error: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + get_underlying_status 'grep a <a' 2 ++ trap '' PIPE ++ sleep 1 ++ : ++ eval 'grep a <a' +++ grep a ++ echo 0 + underlying_status=0 + test 2 -le 0 + test 2 -lt 2 + test 0 -eq 2 + fail=1 + for trap_pipe in trap : + get_underlying_status 'cat <a.gz' 1 ++ : '' PIPE ++ sleep 1 ++ : ++ eval 'cat <a.gz' +++ cat ++ echo 141 + underlying_status=141 + test 1 -le 141 + test 141 -le 127 + cat_status=141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 1 ++ : ++ gunzip ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ ++ : '' PIPE : ++ sleep 1 ++ gunzip -q ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ ++ : : '' PIPE ++ sleep 1 ++ gzip -d ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 1 ++ : ++ gzip -dq ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ : '' PIPE ++ sleep 1 ++ zcat ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 1 ++ : ++ zcmp - b.gz ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + get_underlying_status 'cmp - b <a' 2 ++ : '' PIPE ++ sleep 1 ++ : ++ eval 'cmp - b <a' +++ cmp - b ++ echo 141 + underlying_status=141 + test 2 -le 141 + test 141 -le 127 + test 2 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 1 ++ : ++ zdiff - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'diff - b <a' 2 ++ : '' PIPE ++ sleep 1 ++ : ++ eval 'diff - b <a' +++ diff - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 1 ++ : ++ zgrep a ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + get_underlying_status 'grep a <a' 2 ++ : ++ : '' PIPE ++ sleep 1 ++ eval 'grep a <a' +++ grep a ++ echo 141 + underlying_status=141 + test 2 -le 141 + test 141 -le 127 + test 2 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /home/haible/gzip-snapshot/build-x86-64-cc/tests + chmod -R u+rwx /home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR + rm -rf /home/haible/gzip-snapshot/build-x86-64-cc/tests/gt-pipe-output.ORRR + exit 1 FAIL pipe-output (exit status: 1)
========================================= gzip snapshot: tests/test-suite.log ========================================= # TOTAL: 31 # PASS: 30 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 System information (uname -a): SunOS 5.11 illumos-cfafba391b i86pc i386 .. contents:: :depth: 2 FAIL: pipe-output ================= ++ initial_cwd_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /export/home/bruno/gzip-snapshot/build-64-gcc/tests gt-pipe-output.XXXX +++ case $# in +++ destdir_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests +++ template_=gt-pipe-output.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests/ +++ case $template_ in ++++ unset TMPDIR +++ d= ++++ sed 's/XX*$//' ++++ echo gt-pipe-output.XXXX +++ base_template_=gt-pipe-output. ++++ wc -c ++++ echo gt-pipe-output.XXXX +++ template_length_=' 20' ++++ wc -c ++++ echo gt-pipe-output. +++ nx_=' 16' ++++ expr 20 - 16 +++ nx_=4 +++ err_= +++ i_=1 +++ : ++++ rand_bytes_ 4 ++++ n_=4 ++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ++++ dev_rand_=/dev/urandom ++++ test -r /dev/urandom ++++ LC_ALL=C ++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ++++ dd ibs=4 count=1 if=/dev/urandom ++++ return +++ X_=zAlV +++ candidate_dir_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV ++++ mkdir -m 0700 /export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV +++ err_= +++ echo /export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV +++ return ++ test_dir_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV ++ cd /export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV ++ case $srcdir in ++ srcdir=../../../tests ++ 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 /export/home/bruno/gzip-snapshot/build-64-gcc/. ++ new_PATH=/export/home/bruno/gzip-snapshot/build-64-gcc ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/bin/. ++ new_PATH=/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sbin/. ++ new_PATH=/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin:/usr/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /sbin/. ++ new_PATH=/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin:/usr/sbin:/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/gnu/bin/. ++ new_PATH=/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin ++ IFS=' ' ++ PATH=/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin ++ export PATH ++ trap remove_tmp_ EXIT + path_prepend_ .. + test 1 '!=' 0 + path_dir_=.. + case $path_dir_ in + abs_path_dir_=/export/home/bruno/gzip-snapshot/build-64-gcc/tests/.. + case $abs_path_dir_ in + PATH=/export/home/bruno/gzip-snapshot/build-64-gcc/tests/..:/export/home/bruno/gzip-snapshot/build-64-gcc:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin + create_exe_shims_ /export/home/bruno/gzip-snapshot/build-64-gcc/tests/.. + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + sleep 0.01 + sleep_amount=0.01 + echo a + echo b + gzip -k a + gzip -k b + for trap_pipe in trap : + get_underlying_status 'cat <a.gz' 1 ++ : ++ trap '' PIPE ++ sleep 0.01 ++ eval 'cat <a.gz' +++ cat cat: output error (0/24 characters written) Broken pipe ++ echo 2 + underlying_status=2 + test 1 -le 2 + test 2 -le 127 + underlying_status=1 + cat_status=1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ gunzip gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ gunzip -q ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ gzip -d gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ gzip -dq ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ zcat gzip: stdout: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + underlying_status=1 + minfail=1 + test 1 -lt 2 + test 2 -lt 128 + cmd_status=1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ zcmp - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'cmp - b <a' 2 ++ : ++ trap '' PIPE ++ sleep 0.01 ++ eval 'cmp - b <a' +++ cmp - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ zdiff - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'diff - b <a' 2 ++ : ++ trap '' PIPE ++ sleep 0.01 ++ eval 'diff - b <a' +++ diff - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ trap '' PIPE ++ sleep 0.01 ++ zgrep a ggrep: write error: Broken pipe ++ echo 2 + cmd_status=2 + minfail=2 + case $cmd in + get_underlying_status 'grep a <a' 2 ++ : ++ trap '' PIPE ++ sleep 0.01 ++ eval 'grep a <a' +++ grep a ++ echo 0 + underlying_status=0 + test 2 -le 0 + test 2 -lt 2 + test 0 -eq 2 + fail=1 + for trap_pipe in trap : + get_underlying_status 'cat <a.gz' 1 ++ : ++ : '' PIPE ++ sleep 0.01 ++ eval 'cat <a.gz' +++ cat ++ echo 141 + underlying_status=141 + test 1 -le 141 + test 141 -le 127 + cat_status=141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ : '' PIPE ++ sleep 0.01 ++ gunzip ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ : '' PIPE ++ sleep 0.01 ++ gunzip -q ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ : '' PIPE ++ sleep 0.01 ++ gzip -d ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 0.01 ++ : ++ gzip -dq ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 0.01 ++ : ++ zcat ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + underlying_status=141 + minfail=1 + test 1 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 0.01 ++ : ++ zcmp - b.gz ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + get_underlying_status 'cmp - b <a' 2 ++ : '' PIPE ++ sleep 0.01 ++ : ++ eval 'cmp - b <a' +++ cmp - b ++ echo 141 + underlying_status=141 + test 2 -le 141 + test 141 -le 127 + test 2 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : '' PIPE ++ sleep 0.01 ++ : ++ zdiff - b.gz ++ echo 1 + cmd_status=1 + minfail=2 + case $cmd in + get_underlying_status 'diff - b <a' 2 ++ : ++ : '' PIPE ++ sleep 0.01 ++ eval 'diff - b <a' +++ diff - b ++ echo 1 + underlying_status=1 + test 2 -le 1 + test 2 -lt 1 + test 1 -eq 1 + for cmd in 'gunzip' 'gunzip -q' 'gzip -d' 'gzip -dq' 'zcat' 'zcmp - b.gz' 'zdiff - b.gz' 'zgrep a' ++ : ++ : '' PIPE ++ sleep 0.01 ++ zgrep a ++ echo 141 + cmd_status=141 + minfail=2 + case $cmd in + get_underlying_status 'grep a <a' 2 ++ : ++ : '' PIPE ++ sleep 0.01 ++ eval 'grep a <a' +++ grep a ++ echo 141 + underlying_status=141 + test 2 -le 141 + test 141 -le 127 + test 2 -lt 141 + test 141 -lt 128 + test 141 -eq 141 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /export/home/bruno/gzip-snapshot/build-64-gcc/tests + chmod -R u+rwx /export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV + rm -rf /export/home/bruno/gzip-snapshot/build-64-gcc/tests/gt-pipe-output.zAlV + exit 1 FAIL pipe-output (exit status: 1)
